finish ui re-build

This commit is contained in:
2022-06-13 12:37:53 +02:00
parent 0cacb0d980
commit af527c1d7b
19 changed files with 944 additions and 1685 deletions

View File

@@ -2,6 +2,7 @@
using DevComponents.DotNetBar;
using global::DevComponents.Editors;
using Microsoft.VisualBasic.CompilerServices;
using Telerik.WinControls.UI;
namespace Pilz.Updating.Administration.GUI
{
@@ -14,14 +15,12 @@ namespace Pilz.Updating.Administration.GUI
{
InitializeComponent();
comboBoxEx_Format.Items.AddRange(new ComboItem[]
radDropDownList_Formatting.Items.AddRange(new RadListDataItem[]
{
new ComboItem { Text = "Nur Text", Tag = UpdateNotesContentType.PlainText },
new ComboItem { Text = "Markdown", Tag = UpdateNotesContentType.Markdown },
new ComboItem { Text = "HTML", Tag = UpdateNotesContentType.HTML },
new RadListDataItem { Text = "Nur Text", Tag = UpdateNotesContentType.PlainText },
new RadListDataItem { Text = "Markdown", Tag = UpdateNotesContentType.Markdown },
new RadListDataItem { Text = "HTML", Tag = UpdateNotesContentType.HTML },
});
UpdateAmbientColors();
}
// P r o p e r t i e s
@@ -30,11 +29,11 @@ namespace Pilz.Updating.Administration.GUI
{
get
{
return textBoxX1.Text;
return radTextBoxControl_Titel.Text;
}
set
{
textBoxX1.Text = value;
radTextBoxControl_Titel.Text = value;
}
}
@@ -42,23 +41,23 @@ namespace Pilz.Updating.Administration.GUI
{
get
{
return textBoxX2.Text;
return radRichTextEditor_Description.Text;
}
set
{
textBoxX2.Text = value;
radRichTextEditor_Description.Text = value;
}
}
public UpdateNotesContentType DescriptionType
{
get =>
(UpdateNotesContentType)(comboBoxEx_Format.SelectedItem as ComboItem)?.Tag;
(UpdateNotesContentType)radDropDownList_Formatting.SelectedItem?.Tag;
set
{
foreach (ComboItem item in comboBoxEx_Format.Items)
foreach (var item in radDropDownList_Formatting.Items)
if ((UpdateNotesContentType)item.Tag == value)
comboBoxEx_Format.SelectedItem = item;
radDropDownList_Formatting.SelectedItem = item;
}
}
}