Now properly disposing of tray icon on exit.
1 namespace SharpDisplayClient
6 /// Required designer variable.
8 private System.ComponentModel.IContainer components = null;
11 /// Clean up any resources being used.
13 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14 protected override void Dispose(bool disposing)
16 if (disposing && (components != null))
20 base.Dispose(disposing);
23 #region Windows Form Designer generated code
26 /// Required method for Designer support - do not modify
27 /// the contents of this method with the code editor.
29 private void InitializeComponent()
31 this.buttonSetText = new System.Windows.Forms.Button();
32 this.textBoxTop = new System.Windows.Forms.TextBox();
33 this.textBoxBottom = new System.Windows.Forms.TextBox();
34 this.buttonAlignRight = new System.Windows.Forms.Button();
35 this.buttonAlignCenter = new System.Windows.Forms.Button();
36 this.buttonAlignLeft = new System.Windows.Forms.Button();
37 this.buttonSetTopText = new System.Windows.Forms.Button();
38 this.buttonLayoutUpdate = new System.Windows.Forms.Button();
39 this.buttonSetBitmap = new System.Windows.Forms.Button();
40 this.buttonBitmapLayout = new System.Windows.Forms.Button();
41 this.buttonIndicatorsLayout = new System.Windows.Forms.Button();
42 this.buttonUpdateTexts = new System.Windows.Forms.Button();
47 this.buttonSetText.Location = new System.Drawing.Point(13, 132);
48 this.buttonSetText.Name = "buttonSetText";
49 this.buttonSetText.Size = new System.Drawing.Size(75, 23);
50 this.buttonSetText.TabIndex = 0;
51 this.buttonSetText.Text = "Set Text";
52 this.buttonSetText.UseVisualStyleBackColor = true;
53 this.buttonSetText.Click += new System.EventHandler(this.buttonSetText_Click);
57 this.textBoxTop.Location = new System.Drawing.Point(12, 31);
58 this.textBoxTop.Name = "textBoxTop";
59 this.textBoxTop.Size = new System.Drawing.Size(419, 20);
60 this.textBoxTop.TabIndex = 1;
64 this.textBoxBottom.Location = new System.Drawing.Point(12, 57);
65 this.textBoxBottom.Name = "textBoxBottom";
66 this.textBoxBottom.Size = new System.Drawing.Size(419, 20);
67 this.textBoxBottom.TabIndex = 2;
71 this.buttonAlignRight.Location = new System.Drawing.Point(176, 160);
72 this.buttonAlignRight.Name = "buttonAlignRight";
73 this.buttonAlignRight.Size = new System.Drawing.Size(75, 23);
74 this.buttonAlignRight.TabIndex = 23;
75 this.buttonAlignRight.Text = "Align Right";
76 this.buttonAlignRight.UseVisualStyleBackColor = true;
77 this.buttonAlignRight.Click += new System.EventHandler(this.buttonAlignRight_Click);
81 this.buttonAlignCenter.Location = new System.Drawing.Point(94, 161);
82 this.buttonAlignCenter.Name = "buttonAlignCenter";
83 this.buttonAlignCenter.Size = new System.Drawing.Size(75, 23);
84 this.buttonAlignCenter.TabIndex = 22;
85 this.buttonAlignCenter.Text = "Align Center";
86 this.buttonAlignCenter.UseVisualStyleBackColor = true;
87 this.buttonAlignCenter.Click += new System.EventHandler(this.buttonAlignCenter_Click);
91 this.buttonAlignLeft.Location = new System.Drawing.Point(12, 161);
92 this.buttonAlignLeft.Name = "buttonAlignLeft";
93 this.buttonAlignLeft.Size = new System.Drawing.Size(75, 23);
94 this.buttonAlignLeft.TabIndex = 21;
95 this.buttonAlignLeft.Text = "Align Left";
96 this.buttonAlignLeft.UseVisualStyleBackColor = true;
97 this.buttonAlignLeft.Click += new System.EventHandler(this.buttonAlignLeft_Click);
101 this.buttonSetTopText.Location = new System.Drawing.Point(94, 132);
102 this.buttonSetTopText.Name = "buttonSetTopText";
103 this.buttonSetTopText.Size = new System.Drawing.Size(75, 23);
104 this.buttonSetTopText.TabIndex = 24;
105 this.buttonSetTopText.Text = "Set Top Text";
106 this.buttonSetTopText.UseVisualStyleBackColor = true;
107 this.buttonSetTopText.Click += new System.EventHandler(this.buttonSetTopText_Click);
109 // buttonLayoutUpdate
111 this.buttonLayoutUpdate.Location = new System.Drawing.Point(176, 131);
112 this.buttonLayoutUpdate.Name = "buttonLayoutUpdate";
113 this.buttonLayoutUpdate.Size = new System.Drawing.Size(75, 23);
114 this.buttonLayoutUpdate.TabIndex = 25;
115 this.buttonLayoutUpdate.Text = "Layout 2x2";
116 this.buttonLayoutUpdate.UseVisualStyleBackColor = true;
117 this.buttonLayoutUpdate.Click += new System.EventHandler(this.buttonLayoutUpdate_Click);
121 this.buttonSetBitmap.Location = new System.Drawing.Point(12, 190);
122 this.buttonSetBitmap.Name = "buttonSetBitmap";
123 this.buttonSetBitmap.Size = new System.Drawing.Size(75, 23);
124 this.buttonSetBitmap.TabIndex = 26;
125 this.buttonSetBitmap.Text = "Set Bitmap";
126 this.buttonSetBitmap.UseVisualStyleBackColor = true;
127 this.buttonSetBitmap.Click += new System.EventHandler(this.buttonSetBitmap_Click);
129 // buttonBitmapLayout
131 this.buttonBitmapLayout.Location = new System.Drawing.Point(176, 189);
132 this.buttonBitmapLayout.Name = "buttonBitmapLayout";
133 this.buttonBitmapLayout.Size = new System.Drawing.Size(75, 35);
134 this.buttonBitmapLayout.TabIndex = 27;
135 this.buttonBitmapLayout.Text = "Bitmap Layout";
136 this.buttonBitmapLayout.UseVisualStyleBackColor = true;
137 this.buttonBitmapLayout.Click += new System.EventHandler(this.buttonBitmapLayout_Click);
139 // buttonIndicatorsLayout
141 this.buttonIndicatorsLayout.Location = new System.Drawing.Point(94, 189);
142 this.buttonIndicatorsLayout.Name = "buttonIndicatorsLayout";
143 this.buttonIndicatorsLayout.Size = new System.Drawing.Size(75, 35);
144 this.buttonIndicatorsLayout.TabIndex = 28;
145 this.buttonIndicatorsLayout.Text = "Indicators Layout ";
146 this.buttonIndicatorsLayout.UseVisualStyleBackColor = true;
147 this.buttonIndicatorsLayout.Click += new System.EventHandler(this.buttonIndicatorsLayout_Click);
151 this.buttonUpdateTexts.Location = new System.Drawing.Point(257, 189);
152 this.buttonUpdateTexts.Name = "buttonUpdateTexts";
153 this.buttonUpdateTexts.Size = new System.Drawing.Size(75, 35);
154 this.buttonUpdateTexts.TabIndex = 29;
155 this.buttonUpdateTexts.Text = "Update Texts";
156 this.buttonUpdateTexts.UseVisualStyleBackColor = true;
157 this.buttonUpdateTexts.Click += new System.EventHandler(this.buttonUpdateTexts_Click);
161 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
162 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
163 this.ClientSize = new System.Drawing.Size(443, 252);
164 this.Controls.Add(this.buttonUpdateTexts);
165 this.Controls.Add(this.buttonIndicatorsLayout);
166 this.Controls.Add(this.buttonBitmapLayout);
167 this.Controls.Add(this.buttonSetBitmap);
168 this.Controls.Add(this.buttonLayoutUpdate);
169 this.Controls.Add(this.buttonSetTopText);
170 this.Controls.Add(this.buttonAlignRight);
171 this.Controls.Add(this.buttonAlignCenter);
172 this.Controls.Add(this.buttonAlignLeft);
173 this.Controls.Add(this.textBoxBottom);
174 this.Controls.Add(this.textBoxTop);
175 this.Controls.Add(this.buttonSetText);
176 this.Name = "MainForm";
177 this.Text = "Client";
178 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
179 this.Load += new System.EventHandler(this.MainForm_Load);
180 this.ResumeLayout(false);
181 this.PerformLayout();
187 private System.Windows.Forms.Button buttonSetText;
188 private System.Windows.Forms.TextBox textBoxTop;
189 private System.Windows.Forms.TextBox textBoxBottom;
190 private System.Windows.Forms.Button buttonAlignRight;
191 private System.Windows.Forms.Button buttonAlignCenter;
192 private System.Windows.Forms.Button buttonAlignLeft;
193 private System.Windows.Forms.Button buttonSetTopText;
194 private System.Windows.Forms.Button buttonLayoutUpdate;
195 private System.Windows.Forms.Button buttonSetBitmap;
196 private System.Windows.Forms.Button buttonBitmapLayout;
197 private System.Windows.Forms.Button buttonIndicatorsLayout;
198 private System.Windows.Forms.Button buttonUpdateTexts;