Commits

Joel Ross  committed 6bd6685

A few tweaks to the edit view for tab order and fixed the bindings for the delcom service to have it dispose properly

  • Participants
  • Parent commits 04aa00b

Comments (0)

Files changed (3)

File src/Core/Modules/ServiceModule.cs

             Kernel.Bind<IProjectService>().To<ProjectService>();
             Kernel.Bind<IProjectStatusResolverService>().To<CruiseControlProjectStatusResolverService>();
             Kernel.Bind<IApplicationService>().To<ApplicationService>();
+            Kernel.Bind<DelcomTrafficLightProjectStatusIndicatorService>().ToSelf().InSingletonScope();
         }
     }
 }

File src/Core/Services/DelcomTrafficLightProjectStatusIndicatorService.cs

 
         public void Dispose()
         {
-            ClearDisplayState();
-            Delcom.DelcomCloseDevice(deviceHandle);
+            try
+            {
+                ClearDisplayState();
+                Delcom.DelcomCloseDevice(deviceHandle);
+            }
+            catch { }
         }
 
         public void Handle(BuildStatusChanged arg)

File src/UI/EditProjectView.Designer.cs

             this.lblUrl.Location = new System.Drawing.Point(15, 42);
             this.lblUrl.Name = "lblUrl";
             this.lblUrl.Size = new System.Drawing.Size(29, 13);
-            this.lblUrl.TabIndex = 1;
+            this.lblUrl.TabIndex = 0;
             this.lblUrl.Text = "URL";
             // 
             // lblPassword
             this.lblPassword.Location = new System.Drawing.Point(15, 95);
             this.lblPassword.Name = "lblPassword";
             this.lblPassword.Size = new System.Drawing.Size(53, 13);
-            this.lblPassword.TabIndex = 2;
+            this.lblPassword.TabIndex = 0;
             this.lblPassword.Text = "Password";
             // 
             // lblUsername
             this.lblUsername.Location = new System.Drawing.Point(15, 68);
             this.lblUsername.Name = "lblUsername";
             this.lblUsername.Size = new System.Drawing.Size(55, 13);
-            this.lblUsername.TabIndex = 3;
+            this.lblUsername.TabIndex = 0;
             this.lblUsername.Text = "Username";
             // 
             // txtProjectName
             // 
             this.txtProjectName.Location = new System.Drawing.Point(74, 12);
             this.txtProjectName.Name = "txtProjectName";
-            this.txtProjectName.Size = new System.Drawing.Size(187, 20);
-            this.txtProjectName.TabIndex = 4;
+            this.txtProjectName.Size = new System.Drawing.Size(269, 20);
+            this.txtProjectName.TabIndex = 1;
             // 
             // txtPassword
             // 
             this.txtPassword.Location = new System.Drawing.Point(74, 91);
             this.txtPassword.Name = "txtPassword";
-            this.txtPassword.Size = new System.Drawing.Size(187, 20);
-            this.txtPassword.TabIndex = 5;
+            this.txtPassword.Size = new System.Drawing.Size(269, 20);
+            this.txtPassword.TabIndex = 4;
             this.txtPassword.UseSystemPasswordChar = true;
             // 
             // txtUsername
             // 
             this.txtUsername.Location = new System.Drawing.Point(74, 65);
             this.txtUsername.Name = "txtUsername";
-            this.txtUsername.Size = new System.Drawing.Size(187, 20);
-            this.txtUsername.TabIndex = 6;
+            this.txtUsername.Size = new System.Drawing.Size(269, 20);
+            this.txtUsername.TabIndex = 3;
             // 
             // txtProjectUrl
             // 
             this.txtProjectUrl.Location = new System.Drawing.Point(74, 38);
             this.txtProjectUrl.Name = "txtProjectUrl";
-            this.txtProjectUrl.Size = new System.Drawing.Size(187, 20);
-            this.txtProjectUrl.TabIndex = 7;
+            this.txtProjectUrl.Size = new System.Drawing.Size(269, 20);
+            this.txtProjectUrl.TabIndex = 2;
             // 
             // btnSave
             // 
-            this.btnSave.Location = new System.Drawing.Point(74, 118);
+            this.btnSave.Location = new System.Drawing.Point(88, 117);
             this.btnSave.Name = "btnSave";
             this.btnSave.Size = new System.Drawing.Size(187, 23);
-            this.btnSave.TabIndex = 8;
+            this.btnSave.TabIndex = 5;
             this.btnSave.Text = "Save Project";
             this.btnSave.UseVisualStyleBackColor = true;
             // 
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(279, 149);
+            this.ClientSize = new System.Drawing.Size(355, 149);
             this.Controls.Add(this.btnSave);
             this.Controls.Add(this.txtProjectUrl);
             this.Controls.Add(this.txtUsername);