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,35 +8,35 @@ 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 UpdateServerInfoEditor : OfficeForm
public partial class UpdateServerInfoEditor : RadForm
{
public UpdateServerInfoEditor()
{
InitializeComponent();
UpdateAmbientColors();
}
private void UpdateServerInfoEditor_Shown(object sender, EventArgs e)
{
TextBoxX_ServerAddress.Text = General.CurProject.UpdateServerConfig.ServerAdress;
TextBoxX_PublicBaseURL.Text = General.CurProject.UpdateServerConfig.PublicPackageBaseURL;
TextBoxX_PackageInfoFilename.Text = General.CurProject.UpdateServerConfig.UpdateInfoFilename;
TextBoxX_Username.Text = General.CurProject.UpdateServerConfig.Username;
TextBoxX_Password.Text = General.CurProject.UpdateServerConfig.Password;
switchButton_UseProxyForWebDAV.Value = General.CurProject.UpdateServerConfig.UseProxyForWebDAV;
radTextBoxControl_ServerAddress.Text = General.CurProject.UpdateServerConfig.ServerAdress;
radTextBoxControl_PublicBasisURL.Text = General.CurProject.UpdateServerConfig.PublicPackageBaseURL;
radTextBoxControl_PackageConfigurationFileName.Text = General.CurProject.UpdateServerConfig.UpdateInfoFilename;
radTextBoxControl_Username.Text = General.CurProject.UpdateServerConfig.Username;
radTextBoxControl_Password.Text = General.CurProject.UpdateServerConfig.Password;
radToggleSwitch_UseProxyForWebDAV.Value = General.CurProject.UpdateServerConfig.UseProxyForWebDAV;
}
private void ButtonX_OK_Click(object sender, EventArgs e)
{
General.CurProject.UpdateServerConfig.ServerAdress = TextBoxX_ServerAddress.Text.Trim();
General.CurProject.UpdateServerConfig.PublicPackageBaseURL = TextBoxX_PublicBaseURL.Text.Trim();
General.CurProject.UpdateServerConfig.UpdateInfoFilename = TextBoxX_PackageInfoFilename.Text.Trim();
General.CurProject.UpdateServerConfig.Username = TextBoxX_Username.Text.Trim();
General.CurProject.UpdateServerConfig.Password = TextBoxX_Password.Text;
General.CurProject.UpdateServerConfig.UseProxyForWebDAV = switchButton_UseProxyForWebDAV.Value;
General.CurProject.UpdateServerConfig.ServerAdress = radTextBoxControl_ServerAddress.Text.Trim();
General.CurProject.UpdateServerConfig.PublicPackageBaseURL = radTextBoxControl_PublicBasisURL.Text.Trim();
General.CurProject.UpdateServerConfig.UpdateInfoFilename = radTextBoxControl_PackageConfigurationFileName.Text.Trim();
General.CurProject.UpdateServerConfig.Username = radTextBoxControl_Username.Text.Trim();
General.CurProject.UpdateServerConfig.Password = radTextBoxControl_Password.Text;
General.CurProject.UpdateServerConfig.UseProxyForWebDAV = radToggleSwitch_UseProxyForWebDAV.Value;
}
}
}