Project refactor and added comments

This commit is contained in:
CMS4390\marantalu
2017-11-23 16:56:17 +01:00
parent 7a6e75ffd5
commit 9b6b3194e4
8 changed files with 172 additions and 152 deletions
+51 -48
View File
@@ -28,59 +28,62 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ServerControlWindow));
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(12, 12);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(177, 69);
this.button1.TabIndex = 0;
this.button1.Text = "Server Stop";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(211, 12);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(177, 69);
this.button2.TabIndex = 1;
this.button2.Text = "Open UI";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// notifyIcon1
//
this.notifyIcon1.BalloonTipText = "CMS";
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Text = "CMS Server";
this.notifyIcon1.Visible = true;
this.notifyIcon1.Click += new System.EventHandler(this.notifyIcon1_Click);
//
// ServerControlWindow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(400, 93);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "ServerControlWindow";
this.Text = "Step";
this.ResumeLayout(false);
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ServerControlWindow));
this.stopServerButton = new System.Windows.Forms.Button();
this.openUiButton = new System.Windows.Forms.Button();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.SuspendLayout();
//
// stopServerButton
//
this.stopServerButton.Location = new System.Drawing.Point(7, 7);
this.stopServerButton.Margin = new System.Windows.Forms.Padding(2);
this.stopServerButton.Name = "stopServerButton";
this.stopServerButton.Size = new System.Drawing.Size(97, 37);
this.stopServerButton.TabIndex = 0;
this.stopServerButton.Text = "Server Stop";
this.stopServerButton.UseVisualStyleBackColor = true;
this.stopServerButton.Click += new System.EventHandler(this.StopServerButton_Click);
//
// openUiButton
//
this.openUiButton.Location = new System.Drawing.Point(115, 7);
this.openUiButton.Margin = new System.Windows.Forms.Padding(2);
this.openUiButton.Name = "openUiButton";
this.openUiButton.Size = new System.Drawing.Size(97, 37);
this.openUiButton.TabIndex = 1;
this.openUiButton.Text = "Open UI";
this.openUiButton.UseVisualStyleBackColor = true;
this.openUiButton.Click += new System.EventHandler(this.OpenUiButton_Click);
//
// notifyIcon1
//
this.notifyIcon1.BalloonTipText = "CMS";
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Text = "CMS Server";
this.notifyIcon1.Visible = true;
this.notifyIcon1.Click += new System.EventHandler(this.notifyIcon1_Click);
//
// ServerControlWindow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(218, 50);
this.Controls.Add(this.openUiButton);
this.Controls.Add(this.stopServerButton);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "ServerControlWindow";
this.Text = "Step";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button stopServerButton;
private System.Windows.Forms.Button openUiButton;
private System.Windows.Forms.NotifyIcon notifyIcon1;
}
}