finish ui re-build
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user