change RadRichTextEditor's to RadTextBox

This commit is contained in:
2022-11-20 10:45:45 +01:00
parent e9cd9dbea6
commit 238763596a
6 changed files with 98 additions and 104 deletions

View File

@@ -30,39 +30,39 @@ namespace Pilz.Updating.Administration.GUI
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DiscordBotSettingsWindow));
this.panel1 = new System.Windows.Forms.Panel();
this.radLabel1 = new Telerik.WinControls.UI.RadLabel();
this.radLabel2 = new Telerik.WinControls.UI.RadLabel();
this.radLabel3 = new Telerik.WinControls.UI.RadLabel();
this.radLabel4 = new Telerik.WinControls.UI.RadLabel();
this.radTextBoxControl_BotToken = new Telerik.WinControls.UI.RadTextBoxControl();
this.radLabel3 = new Telerik.WinControls.UI.RadLabel();
this.radTextBoxControl_DefaultProgramName = new Telerik.WinControls.UI.RadTextBoxControl();
this.radRichTextEditor_DefaultMessage = new Telerik.WinControls.UI.RadRichTextEditor();
this.radLabel2 = new Telerik.WinControls.UI.RadLabel();
this.radToggleSwitch_UseProxy = new Telerik.WinControls.UI.RadToggleSwitch();
this.radButton_Abbrechen = new Telerik.WinControls.UI.RadButton();
this.radButton_Okay = new Telerik.WinControls.UI.RadButton();
this.radLabel1 = new Telerik.WinControls.UI.RadLabel();
this.radTextBox_DefaultMessage = new Telerik.WinControls.UI.RadTextBox();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.radLabel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBoxControl_BotToken)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBoxControl_DefaultProgramName)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radRichTextEditor_DefaultMessage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radToggleSwitch_UseProxy)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radButton_Abbrechen)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radButton_Okay)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBox_DefaultMessage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Transparent;
this.panel1.Controls.Add(this.radTextBox_DefaultMessage);
this.panel1.Controls.Add(this.radLabel4);
this.panel1.Controls.Add(this.radTextBoxControl_BotToken);
this.panel1.Controls.Add(this.radLabel3);
this.panel1.Controls.Add(this.radTextBoxControl_DefaultProgramName);
this.panel1.Controls.Add(this.radLabel2);
this.panel1.Controls.Add(this.radRichTextEditor_DefaultMessage);
this.panel1.Controls.Add(this.radToggleSwitch_UseProxy);
this.panel1.Controls.Add(this.radButton_Abbrechen);
this.panel1.Controls.Add(this.radButton_Okay);
@@ -73,35 +73,11 @@ namespace Pilz.Updating.Administration.GUI
this.panel1.Size = new System.Drawing.Size(736, 471);
this.panel1.TabIndex = 0;
//
// radLabel1
//
this.radLabel1.Location = new System.Drawing.Point(3, 5);
this.radLabel1.Name = "radLabel1";
this.radLabel1.Size = new System.Drawing.Size(61, 18);
this.radLabel1.TabIndex = 0;
this.radLabel1.Text = "Bot-Token:";
//
// radLabel2
//
this.radLabel2.Location = new System.Drawing.Point(3, 33);
this.radLabel2.Name = "radLabel2";
this.radLabel2.Size = new System.Drawing.Size(94, 18);
this.radLabel2.TabIndex = 1;
this.radLabel2.Text = "Proxy verwenden:";
//
// radLabel3
//
this.radLabel3.Location = new System.Drawing.Point(3, 61);
this.radLabel3.Name = "radLabel3";
this.radLabel3.Size = new System.Drawing.Size(114, 18);
this.radLabel3.TabIndex = 2;
this.radLabel3.Text = "Standart-Programme:";
//
// radLabel4
//
this.radLabel4.Location = new System.Drawing.Point(3, 89);
this.radLabel4.Name = "radLabel4";
this.radLabel4.Size = new System.Drawing.Size(103, 18);
this.radLabel4.Size = new System.Drawing.Size(113, 19);
this.radLabel4.TabIndex = 3;
this.radLabel4.Text = "Standart-Nachricht:";
//
@@ -114,6 +90,14 @@ namespace Pilz.Updating.Administration.GUI
this.radTextBoxControl_BotToken.Size = new System.Drawing.Size(606, 22);
this.radTextBoxControl_BotToken.TabIndex = 0;
//
// radLabel3
//
this.radLabel3.Location = new System.Drawing.Point(3, 61);
this.radLabel3.Name = "radLabel3";
this.radLabel3.Size = new System.Drawing.Size(124, 19);
this.radLabel3.TabIndex = 2;
this.radLabel3.Text = "Standart-Programme:";
//
// radTextBoxControl_DefaultProgramName
//
this.radTextBoxControl_DefaultProgramName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
@@ -123,18 +107,13 @@ namespace Pilz.Updating.Administration.GUI
this.radTextBoxControl_DefaultProgramName.Size = new System.Drawing.Size(606, 22);
this.radTextBoxControl_DefaultProgramName.TabIndex = 4;
//
// radRichTextEditor_DefaultMessage
// radLabel2
//
this.radRichTextEditor_DefaultMessage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.radRichTextEditor_DefaultMessage.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.radRichTextEditor_DefaultMessage.Location = new System.Drawing.Point(127, 87);
this.radRichTextEditor_DefaultMessage.Name = "radRichTextEditor_DefaultMessage";
this.radRichTextEditor_DefaultMessage.SelectionFill = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(179)))), ((int)(((byte)(236)))), ((int)(((byte)(248)))));
this.radRichTextEditor_DefaultMessage.SelectionStroke = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(236)))), ((int)(((byte)(248)))));
this.radRichTextEditor_DefaultMessage.Size = new System.Drawing.Size(606, 351);
this.radRichTextEditor_DefaultMessage.TabIndex = 0;
this.radLabel2.Location = new System.Drawing.Point(3, 33);
this.radLabel2.Name = "radLabel2";
this.radLabel2.Size = new System.Drawing.Size(102, 19);
this.radLabel2.TabIndex = 1;
this.radLabel2.Text = "Proxy verwenden:";
//
// radToggleSwitch_UseProxy
//
@@ -171,6 +150,29 @@ namespace Pilz.Updating.Administration.GUI
this.radButton_Okay.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.radButton_Okay.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
//
// radLabel1
//
this.radLabel1.Location = new System.Drawing.Point(3, 5);
this.radLabel1.Name = "radLabel1";
this.radLabel1.Size = new System.Drawing.Size(66, 19);
this.radLabel1.TabIndex = 0;
this.radLabel1.Text = "Bot-Token:";
//
// radTextBox_DefaultMessage
//
this.radTextBox_DefaultMessage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.radTextBox_DefaultMessage.Location = new System.Drawing.Point(127, 89);
this.radTextBox_DefaultMessage.Multiline = true;
this.radTextBox_DefaultMessage.Name = "radTextBox_DefaultMessage";
//
//
//
this.radTextBox_DefaultMessage.RootElement.StretchVertically = true;
this.radTextBox_DefaultMessage.Size = new System.Drawing.Size(606, 349);
this.radTextBox_DefaultMessage.TabIndex = 6;
//
// DiscordBotSettingsWindow
//
this.CancelButton = this.radButton_Abbrechen;
@@ -178,24 +180,20 @@ namespace Pilz.Updating.Administration.GUI
this.Controls.Add(this.panel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "DiscordBotSettingsWindow";
//
//
//
this.RootElement.ApplyShapeToControl = true;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Discord Bot-Einstellungen";
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.radLabel1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBoxControl_BotToken)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBoxControl_DefaultProgramName)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radRichTextEditor_DefaultMessage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radToggleSwitch_UseProxy)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radButton_Abbrechen)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radButton_Okay)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBox_DefaultMessage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
this.ResumeLayout(false);
@@ -209,10 +207,10 @@ namespace Pilz.Updating.Administration.GUI
private Telerik.WinControls.UI.RadLabel radLabel3;
private Telerik.WinControls.UI.RadTextBoxControl radTextBoxControl_DefaultProgramName;
private Telerik.WinControls.UI.RadLabel radLabel2;
private Telerik.WinControls.UI.RadRichTextEditor radRichTextEditor_DefaultMessage;
private Telerik.WinControls.UI.RadToggleSwitch radToggleSwitch_UseProxy;
private Telerik.WinControls.UI.RadButton radButton_Abbrechen;
private Telerik.WinControls.UI.RadButton radButton_Okay;
private Telerik.WinControls.UI.RadLabel radLabel1;
private Telerik.WinControls.UI.RadTextBox radTextBox_DefaultMessage;
}
}

View File

@@ -22,7 +22,7 @@ namespace Pilz.Updating.Administration.GUI
radTextBoxControl_BotToken.Text = config.DiscordBotToken;
radTextBoxControl_DefaultProgramName.Text = config.DefaultAppName;
radRichTextEditor_DefaultMessage.Text = config.DefaultUpdateMessage;
radTextBox_DefaultMessage.Text = config.DefaultUpdateMessage;
radToggleSwitch_UseProxy.Value = config.UseProxy;
}
@@ -30,7 +30,7 @@ namespace Pilz.Updating.Administration.GUI
{
config.DefaultUpdateMessage = radTextBoxControl_BotToken.Text.Trim();
config.DefaultAppName = radTextBoxControl_DefaultProgramName.Text.Trim();
config.DiscordBotToken = radRichTextEditor_DefaultMessage.Text.Trim();
config.DiscordBotToken = radTextBox_DefaultMessage.Text.Trim();
config.UseProxy = radToggleSwitch_UseProxy.Value;
}
}

View File

@@ -33,20 +33,20 @@
this.panel1 = new System.Windows.Forms.Panel();
this.radLabel2 = new Telerik.WinControls.UI.RadLabel();
this.radTextBoxControl_ProgramName = new Telerik.WinControls.UI.RadTextBoxControl();
this.radRichTextEditor_Message = new Telerik.WinControls.UI.RadRichTextEditor();
this.radCheckBoxPingAtEveryone = new Telerik.WinControls.UI.RadCheckBox();
this.radCheckBox_AttachDescription = new Telerik.WinControls.UI.RadCheckBox();
this.radButton_Send = new Telerik.WinControls.UI.RadButton();
this.radLabel1 = new Telerik.WinControls.UI.RadLabel();
this.radTextBox_Message = new Telerik.WinControls.UI.RadTextBox();
((System.ComponentModel.ISupportInitialize)(this.radTreeView_Channels)).BeginInit();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.radLabel2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBoxControl_ProgramName)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radRichTextEditor_Message)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radCheckBoxPingAtEveryone)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radCheckBox_AttachDescription)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radButton_Send)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBox_Message)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
this.SuspendLayout();
//
@@ -64,9 +64,9 @@
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Transparent;
this.panel1.Controls.Add(this.radTextBox_Message);
this.panel1.Controls.Add(this.radLabel2);
this.panel1.Controls.Add(this.radTextBoxControl_ProgramName);
this.panel1.Controls.Add(this.radRichTextEditor_Message);
this.panel1.Controls.Add(this.radCheckBoxPingAtEveryone);
this.panel1.Controls.Add(this.radCheckBox_AttachDescription);
this.panel1.Controls.Add(this.radButton_Send);
@@ -94,19 +94,6 @@
this.radTextBoxControl_ProgramName.Size = new System.Drawing.Size(410, 22);
this.radTextBoxControl_ProgramName.TabIndex = 0;
//
// radRichTextEditor_Message
//
this.radRichTextEditor_Message.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.radRichTextEditor_Message.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.radRichTextEditor_Message.Location = new System.Drawing.Point(101, 31);
this.radRichTextEditor_Message.Name = "radRichTextEditor_Message";
this.radRichTextEditor_Message.SelectionFill = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(179)))), ((int)(((byte)(236)))), ((int)(((byte)(248)))));
this.radRichTextEditor_Message.SelectionStroke = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(236)))), ((int)(((byte)(248)))));
this.radRichTextEditor_Message.Size = new System.Drawing.Size(410, 397);
this.radRichTextEditor_Message.TabIndex = 0;
//
// radCheckBoxPingAtEveryone
//
this.radCheckBoxPingAtEveryone.CheckState = System.Windows.Forms.CheckState.Checked;
@@ -149,6 +136,21 @@
this.radLabel1.TabIndex = 0;
this.radLabel1.Text = "Programmname:";
//
// radTextBox_Message
//
this.radTextBox_Message.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.radTextBox_Message.Location = new System.Drawing.Point(101, 31);
this.radTextBox_Message.Multiline = true;
this.radTextBox_Message.Name = "radTextBox_Message";
//
//
//
this.radTextBox_Message.RootElement.StretchVertically = true;
this.radTextBox_Message.Size = new System.Drawing.Size(410, 397);
this.radTextBox_Message.TabIndex = 4;
//
// DiscordPostDialog
//
this.AutoScaleBaseSize = new System.Drawing.Size(7, 15);
@@ -159,10 +161,6 @@
this.Controls.Add(this.radTreeView_Channels);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "DiscordPostDialog";
//
//
//
this.RootElement.ApplyShapeToControl = true;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Aktuallisierungspost auf Discord";
((System.ComponentModel.ISupportInitialize)(this.radTreeView_Channels)).EndInit();
@@ -170,11 +168,11 @@
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.radLabel2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBoxControl_ProgramName)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radRichTextEditor_Message)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radCheckBoxPingAtEveryone)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radCheckBox_AttachDescription)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radButton_Send)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBox_Message)).EndInit();
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
this.ResumeLayout(false);
@@ -190,6 +188,6 @@
private Telerik.WinControls.UI.RadLabel radLabel1;
private Telerik.WinControls.UI.RadLabel radLabel2;
private Telerik.WinControls.UI.RadTextBoxControl radTextBoxControl_ProgramName;
private Telerik.WinControls.UI.RadRichTextEditor radRichTextEditor_Message;
private Telerik.WinControls.UI.RadTextBox radTextBox_Message;
}
}

View File

@@ -30,7 +30,7 @@ namespace Pilz.Updating.Administration.GUI
InitializeComponent();
radTextBoxControl_ProgramName.Text = General.CurProject.DiscordBotConfig.DefaultAppName;
radRichTextEditor_Message.Text = General.CurProject.DiscordBotConfig.DefaultUpdateMessage;
radTextBox_Message.Text = General.CurProject.DiscordBotConfig.DefaultUpdateMessage;
LoadBgrTree();
}
@@ -75,7 +75,7 @@ namespace Pilz.Updating.Administration.GUI
var selNode = radTreeView_Channels.SelectedNode;
ulong gID = (ulong)selNode.Parent.Tag;
ulong cID = (ulong)selNode.Tag;
var msg = radRichTextEditor_Message.Text;
var msg = radTextBox_Message.Text;
await bot.SendUpdateNotification(package, gID, cID, radTextBoxControl_ProgramName.Text, msg, radCheckBox_AttachDescription.Checked, radCheckBoxPingAtEveryone.Checked);

View File

@@ -41,20 +41,20 @@ namespace Pilz.Updating.Administration.GUI
this.radLabel2 = new Telerik.WinControls.UI.RadLabel();
this.radLabel3 = new Telerik.WinControls.UI.RadLabel();
this.radTextBoxControl_Titel = new Telerik.WinControls.UI.RadTextBoxControl();
this.radRichTextEditor_Description = new Telerik.WinControls.UI.RadRichTextEditor();
this.panel1 = new System.Windows.Forms.Panel();
this.radDropDownList_Formatting = new Telerik.WinControls.UI.RadDropDownList();
this.radButton_Cancel = new Telerik.WinControls.UI.RadButton();
this.radButton_Okay = new Telerik.WinControls.UI.RadButton();
this.radTextBox_Description = new Telerik.WinControls.UI.RadTextBox();
((System.ComponentModel.ISupportInitialize)(this.radLabel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBoxControl_Titel)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radRichTextEditor_Description)).BeginInit();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.radDropDownList_Formatting)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radButton_Cancel)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radButton_Okay)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBox_Description)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
this.SuspendLayout();
//
@@ -92,28 +92,15 @@ namespace Pilz.Updating.Administration.GUI
this.radTextBoxControl_Titel.Size = new System.Drawing.Size(292, 22);
this.radTextBoxControl_Titel.TabIndex = 0;
//
// radRichTextEditor_Description
//
this.radRichTextEditor_Description.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.radRichTextEditor_Description.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.radRichTextEditor_Description.Location = new System.Drawing.Point(89, 31);
this.radRichTextEditor_Description.Name = "radRichTextEditor_Description";
this.radRichTextEditor_Description.SelectionFill = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(179)))), ((int)(((byte)(236)))), ((int)(((byte)(248)))));
this.radRichTextEditor_Description.SelectionStroke = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(236)))), ((int)(((byte)(248)))));
this.radRichTextEditor_Description.Size = new System.Drawing.Size(292, 202);
this.radRichTextEditor_Description.TabIndex = 3;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Transparent;
this.panel1.Controls.Add(this.radTextBox_Description);
this.panel1.Controls.Add(this.radDropDownList_Formatting);
this.panel1.Controls.Add(this.radButton_Cancel);
this.panel1.Controls.Add(this.radButton_Okay);
this.panel1.Controls.Add(this.radTextBoxControl_Titel);
this.panel1.Controls.Add(this.radLabel1);
this.panel1.Controls.Add(this.radRichTextEditor_Description);
this.panel1.Controls.Add(this.radLabel2);
this.panel1.Controls.Add(this.radLabel3);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -160,6 +147,21 @@ namespace Pilz.Updating.Administration.GUI
this.radButton_Okay.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.radButton_Okay.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
//
// radTextBox_Description
//
this.radTextBox_Description.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.radTextBox_Description.Location = new System.Drawing.Point(89, 31);
this.radTextBox_Description.Multiline = true;
this.radTextBox_Description.Name = "radTextBox_Description";
//
//
//
this.radTextBox_Description.RootElement.StretchVertically = true;
this.radTextBox_Description.Size = new System.Drawing.Size(292, 202);
this.radTextBox_Description.TabIndex = 7;
//
// PackageDescriptionEditor
//
this.AutoScaleBaseSize = new System.Drawing.Size(7, 15);
@@ -173,22 +175,18 @@ namespace Pilz.Updating.Administration.GUI
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "PackageDescriptionEditor";
//
//
//
this.RootElement.ApplyShapeToControl = true;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Beschreibung";
((System.ComponentModel.ISupportInitialize)(this.radLabel1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radLabel3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBoxControl_Titel)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radRichTextEditor_Description)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.radDropDownList_Formatting)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radButton_Cancel)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radButton_Okay)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.radTextBox_Description)).EndInit();
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
this.ResumeLayout(false);
@@ -198,10 +196,10 @@ namespace Pilz.Updating.Administration.GUI
private Telerik.WinControls.UI.RadLabel radLabel2;
private Telerik.WinControls.UI.RadLabel radLabel3;
private Telerik.WinControls.UI.RadTextBoxControl radTextBoxControl_Titel;
private Telerik.WinControls.UI.RadRichTextEditor radRichTextEditor_Description;
private Panel panel1;
private Telerik.WinControls.UI.RadDropDownList radDropDownList_Formatting;
private Telerik.WinControls.UI.RadButton radButton_Cancel;
private Telerik.WinControls.UI.RadButton radButton_Okay;
private Telerik.WinControls.UI.RadTextBox radTextBox_Description;
}
}

View File

@@ -39,11 +39,11 @@ namespace Pilz.Updating.Administration.GUI
{
get
{
return radRichTextEditor_Description.Text;
return radTextBox_Description.Text;
}
set
{
radRichTextEditor_Description.Text = value ?? String.Empty;
radTextBox_Description.Text = value ?? String.Empty;
}
}