[icinga-checkins] icinga.org: icinga2/master: Update design of Agent Wizard

git at icinga.org git at icinga.org
Wed Oct 26 10:38:26 CEST 2016


Module: icinga2
Branch: master
Commit: f1a8a74b95e40677a9778c23a70d256ec9797674
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=f1a8a74b95e40677a9778c23a70d256ec9797674

Author: Jean Flach <jean-marcel.flach at icinga.com>
Date:   Wed Oct 26 10:30:12 2016 +0200

Update design of Agent Wizard

refs #9119

---

 agent/windows-setup-agent/SetupWizard.Designer.cs |   14 +++++++-------
 agent/windows-setup-agent/SetupWizard.cs          |    4 ++--
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/agent/windows-setup-agent/SetupWizard.Designer.cs b/agent/windows-setup-agent/SetupWizard.Designer.cs
index edca6c2..6338a0c 100644
--- a/agent/windows-setup-agent/SetupWizard.Designer.cs
+++ b/agent/windows-setup-agent/SetupWizard.Designer.cs
@@ -207,10 +207,10 @@
 			this.groupBox3.Text = "Advanced Options";
 			// 
 			// txtUser
-			//
+			// 
+			this.txtUser.Enabled = false;
 			this.txtUser.Location = new System.Drawing.Point(28, 111);
 			this.txtUser.Name = "txtUser";
-			this.txtUser.ReadOnly = true;
 			this.txtUser.Size = new System.Drawing.Size(267, 20);
 			this.txtUser.TabIndex = 8;
 			this.txtUser.Text = "NT AUTHORITY\\NetworkService";
@@ -381,9 +381,9 @@
 			// lvwEndpoints
 			// 
 			this.lvwEndpoints.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
-			this.colInstanceName,
-			this.colHost,
-			this.colPort});
+            this.colInstanceName,
+            this.colHost,
+            this.colPort});
 			this.lvwEndpoints.FullRowSelect = true;
 			this.lvwEndpoints.Location = new System.Drawing.Point(11, 83);
 			this.lvwEndpoints.Name = "lvwEndpoints";
@@ -522,8 +522,8 @@
 			// lvwX509Fields
 			// 
 			this.lvwX509Fields.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
-			this.colField,
-			this.colValue});
+            this.colField,
+            this.colValue});
 			this.lvwX509Fields.Location = new System.Drawing.Point(6, 19);
 			this.lvwX509Fields.Name = "lvwX509Fields";
 			this.lvwX509Fields.Size = new System.Drawing.Size(586, 172);
diff --git a/agent/windows-setup-agent/SetupWizard.cs b/agent/windows-setup-agent/SetupWizard.cs
index a1733e5..bcd631c 100644
--- a/agent/windows-setup-agent/SetupWizard.cs
+++ b/agent/windows-setup-agent/SetupWizard.cs
@@ -499,8 +499,8 @@ namespace Icinga
 
 		private void chkDifferentUser_CheckedChanged(object sender, EventArgs e)
 		{
-			txtUser.ReadOnly = !txtUser.ReadOnly;
-			if (txtUser.ReadOnly)
+			txtUser.Enabled = !txtUser.Enabled;
+			if (!txtUser.Enabled)
 				txtUser.Text = Icinga2User;
 		}
 	}



More information about the icinga-checkins mailing list