]> granicus.if.org Git - icinga2/commitdiff
Update design of Agent Wizard
authorJean Flach <jean-marcel.flach@icinga.com>
Wed, 26 Oct 2016 08:30:12 +0000 (10:30 +0200)
committerJean Flach <jean-marcel.flach@icinga.com>
Wed, 26 Oct 2016 08:30:12 +0000 (10:30 +0200)
refs #9119

agent/windows-setup-agent/SetupWizard.Designer.cs
agent/windows-setup-agent/SetupWizard.cs

index edca6c2e99d28d1b138d13b1f51f3a37f824f9c9..6338a0c3be6735172cc4630d8303e9ea430218cf 100644 (file)
                        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";
                        // 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";
                        // 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);
index a1733e5a2b5d87a5fdb1a4c06b5644fbb5b0f478..bcd631cdc389a876e835e831f9ab4c623822b3bd 100644 (file)
@@ -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;
                }
        }