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

@@ -8,10 +8,11 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Telerik.WinControls.UI;
namespace Pilz.Updating.Administration.GUI
{
public partial class ProxyConfigEditor : OfficeForm
public partial class ProxyConfigEditor : RadForm
{
private readonly ProxyConfiguration config = null;
@@ -19,21 +20,20 @@ namespace Pilz.Updating.Administration.GUI
{
this.config = config;
InitializeComponent();
UpdateAmbientColors();
}
private void UpdateServerInfoEditor_Shown(object sender, EventArgs e)
{
switchButton_UseProxyAuth.Value = config.UseProxyAuth;
TextBoxX_ProxyUsr.Text = config.Username;
TextBoxX_ProxyPW.Text = config.Password ?? string.Empty;
radToggleSwitch_UserProxy.Value = config.UseProxyAuth;
radTextBoxControl_Username.Text = config.Username;
radTextBoxControl_Password.Text = config.Password ?? string.Empty;
}
private void ButtonX_OK_Click(object sender, EventArgs e)
{
config.UseProxyAuth = switchButton_UseProxyAuth.Value;
config.Username = TextBoxX_ProxyUsr.Text.Trim();
config.Password = TextBoxX_ProxyPW.Text;
config.UseProxyAuth = radToggleSwitch_UserProxy.Value;
config.Username = radTextBoxControl_Username.Text.Trim();
config.Password = radTextBoxControl_Password.Text;
}
}
}