8 private System.ComponentModel.IContainer components =
null;
14 protected override void Dispose(
bool disposing)
16 if (disposing && (components !=
null))
20 base.Dispose(disposing);
23 #region Windows Form Designer generated code
29 private void InitializeComponent()
31 components =
new System.ComponentModel.Container();
32 System.ComponentModel.ComponentResourceManager resources =
new System.ComponentModel.ComponentResourceManager(typeof(
SlideImager));
33 xBox =
new NumericUpDown();
37 yBox =
new NumericUpDown();
39 hBox =
new NumericUpDown();
41 wBox =
new NumericUpDown();
42 setToStageBut =
new Button();
43 setSizeBut =
new Button();
44 addBut =
new Button();
46 focBox =
new NumericUpDown();
47 objBox =
new ComboBox();
50 listBox =
new ListBox();
51 statusStrip =
new StatusStrip();
52 toolStripStatusLabel =
new ToolStripStatusLabel();
53 toolStripProgressBar =
new ToolStripProgressBar();
54 startBut =
new Button();
55 saveFileDialog =
new SaveFileDialog();
56 compBox =
new ComboBox();
58 focBut =
new Button();
59 remBut =
new Button();
60 timer =
new System.Windows.Forms.Timer(components);
61 ((System.ComponentModel.ISupportInitialize)xBox).BeginInit();
62 ((System.ComponentModel.ISupportInitialize)yBox).BeginInit();
63 ((System.ComponentModel.ISupportInitialize)hBox).BeginInit();
64 ((System.ComponentModel.ISupportInitialize)wBox).BeginInit();
65 ((System.ComponentModel.ISupportInitialize)focBox).BeginInit();
66 statusStrip.SuspendLayout();
71 xBox.BackColor =
Color.FromArgb(49, 91, 138);
72 xBox.DecimalPlaces = 3;
73 xBox.ForeColor = SystemColors.Window;
74 xBox.Location =
new Point(42, 31);
75 xBox.Maximum =
new decimal(
new int[] { 100000000, 0, 0, 0 });
76 xBox.Minimum =
new decimal(
new int[] { 1000000000, 0, 0, int.MinValue });
78 xBox.Size =
new Size(120, 23);
83 label2.AutoSize =
true;
84 label2.Location =
new Point(21, 33);
85 label2.Name =
"label2";
86 label2.Size =
new Size(14, 15);
92 label3.AutoSize =
true;
93 label3.Location =
new Point(12, 9);
94 label3.Name =
"label3";
95 label3.Size =
new Size(209, 15);
97 label3.Text =
"Define the area of slide to image. (µm)";
101 label4.AutoSize =
true;
102 label4.Location =
new Point(166, 33);
103 label4.Name =
"label4";
104 label4.Size =
new Size(14, 15);
110 yBox.BackColor =
Color.FromArgb(49, 91, 138);
111 yBox.DecimalPlaces = 3;
112 yBox.ForeColor = SystemColors.Window;
113 yBox.Location =
new Point(187, 31);
114 yBox.Maximum =
new decimal(
new int[] { 100000000, 0, 0, 0 });
115 yBox.Minimum =
new decimal(
new int[] { 1000000000, 0, 0, int.MinValue });
117 yBox.Size =
new Size(120, 23);
122 label5.AutoSize =
true;
123 label5.Location =
new Point(457, 33);
124 label5.Name =
"label5";
125 label5.Size =
new Size(16, 15);
126 label5.TabIndex = 10;
131 hBox.BackColor =
Color.FromArgb(49, 91, 138);
132 hBox.ForeColor = SystemColors.Window;
133 hBox.Location =
new Point(478, 31);
134 hBox.Maximum =
new decimal(
new int[] { 100000000, 0, 0, 0 });
136 hBox.Size =
new Size(120, 23);
141 label6.AutoSize =
true;
142 label6.Location =
new Point(312, 33);
143 label6.Name =
"label6";
144 label6.Size =
new Size(18, 15);
150 wBox.BackColor =
Color.FromArgb(49, 91, 138);
151 wBox.ForeColor = SystemColors.Window;
152 wBox.Location =
new Point(333, 31);
153 wBox.Maximum =
new decimal(
new int[] { 100000000, 0, 0, 0 });
155 wBox.Size =
new Size(120, 23);
160 setToStageBut.ForeColor =
Color.Black;
161 setToStageBut.Location =
new Point(42, 60);
162 setToStageBut.Name =
"setToStageBut";
163 setToStageBut.Size =
new Size(265, 23);
164 setToStageBut.TabIndex = 11;
165 setToStageBut.Text =
"Set to Area Location to Stage.";
166 setToStageBut.UseVisualStyleBackColor =
true;
167 setToStageBut.Click += setToStageBut_Click;
171 setSizeBut.ForeColor =
Color.Black;
172 setSizeBut.Location =
new Point(333, 60);
173 setSizeBut.Name =
"setSizeBut";
174 setSizeBut.Size =
new Size(265, 23);
175 setSizeBut.TabIndex = 12;
176 setSizeBut.Text =
"Set Area Size based on stage coordinates.";
177 setSizeBut.UseVisualStyleBackColor =
true;
178 setSizeBut.Click += setSizeBut_Click;
182 addBut.ForeColor =
Color.Black;
183 addBut.Location =
new Point(523, 114);
184 addBut.Name =
"addBut";
185 addBut.Size =
new Size(75, 23);
186 addBut.TabIndex = 13;
187 addBut.Text =
"Add Level";
188 addBut.UseVisualStyleBackColor =
true;
189 addBut.Click += addBut_Click;
193 label1.AutoSize =
true;
194 label1.Location =
new Point(353, 118);
195 label1.Name =
"label1";
196 label1.Size =
new Size(38, 15);
197 label1.TabIndex = 15;
198 label1.Text =
"Focus";
202 focBox.BackColor =
Color.FromArgb(49, 91, 138);
203 focBox.DecimalPlaces = 3;
204 focBox.ForeColor = SystemColors.Window;
205 focBox.Location =
new Point(397, 114);
206 focBox.Maximum =
new decimal(
new int[] { 100000000, 0, 0, 0 });
207 focBox.Minimum =
new decimal(
new int[] { 1000000000, 0, 0, int.MinValue });
208 focBox.Name =
"focBox";
209 focBox.Size =
new Size(120, 23);
210 focBox.TabIndex = 14;
211 focBox.ValueChanged += focBox_ValueChanged;
215 objBox.BackColor =
Color.FromArgb(49, 91, 138);
216 objBox.FormattingEnabled =
true;
217 objBox.Location =
new Point(255, 115);
218 objBox.Name =
"objBox";
219 objBox.Size =
new Size(92, 23);
220 objBox.TabIndex = 16;
221 objBox.SelectedIndexChanged += objBox_SelectedIndexChanged;
225 label7.AutoSize =
true;
226 label7.Location =
new Point(192, 118);
227 label7.Name =
"label7";
228 label7.Size =
new Size(57, 15);
229 label7.TabIndex = 17;
230 label7.Text =
"Objective";
234 label8.AutoSize =
true;
235 label8.Location =
new Point(12, 92);
236 label8.Name =
"label8";
237 label8.Size =
new Size(407, 15);
238 label8.TabIndex = 18;
239 label8.Text =
"Add pyramidal levels. Setting the objective and the focus to use for the area.";
243 listBox.BackColor =
Color.FromArgb(49, 91, 138);
244 listBox.ForeColor =
Color.White;
245 listBox.FormattingEnabled =
true;
246 listBox.ItemHeight = 15;
247 listBox.Location =
new Point(12, 142);
248 listBox.Name =
"listBox";
249 listBox.Size =
new Size(586, 94);
250 listBox.TabIndex = 19;
251 listBox.SelectedIndexChanged += listBox_SelectedIndexChanged;
255 statusStrip.Items.AddRange(
new ToolStripItem[] { toolStripStatusLabel, toolStripProgressBar });
256 statusStrip.Location =
new Point(0, 273);
257 statusStrip.Name =
"statusStrip";
258 statusStrip.Size =
new Size(609, 22);
259 statusStrip.TabIndex = 20;
260 statusStrip.Text =
"statusStrip1";
264 toolStripStatusLabel.Name =
"toolStripStatusLabel";
265 toolStripStatusLabel.Size =
new Size(71, 17);
266 toolStripStatusLabel.Text =
"Imaging 0/0";
270 toolStripProgressBar.Name =
"toolStripProgressBar";
271 toolStripProgressBar.Size =
new Size(100, 16);
275 startBut.ForeColor =
Color.Black;
276 startBut.Location =
new Point(523, 242);
277 startBut.Name =
"startBut";
278 startBut.Size =
new Size(75, 23);
279 startBut.TabIndex = 21;
280 startBut.Text =
"Start";
281 startBut.UseVisualStyleBackColor =
true;
282 startBut.Click += startBut_Click;
286 saveFileDialog.SupportMultiDottedExtensions =
true;
287 saveFileDialog.Title =
"Save Whole Slide Image as.";
291 compBox.BackColor =
Color.FromArgb(49, 91, 138);
292 compBox.FormattingEnabled =
true;
293 compBox.Location =
new Point(95, 114);
294 compBox.Name =
"compBox";
295 compBox.Size =
new Size(91, 23);
296 compBox.TabIndex = 22;
300 label9.AutoSize =
true;
301 label9.Location =
new Point(12, 118);
302 label9.Name =
"label9";
303 label9.Size =
new Size(77, 15);
304 label9.TabIndex = 23;
305 label9.Text =
"Compression";
309 focBut.ForeColor =
Color.Black;
310 focBut.Location =
new Point(442, 88);
311 focBut.Name =
"focBut";
312 focBut.Size =
new Size(75, 23);
313 focBut.TabIndex = 24;
314 focBut.Text =
"Set Focus";
315 focBut.UseVisualStyleBackColor =
true;
316 focBut.Click += focBut_Click;
320 remBut.ForeColor =
Color.Black;
321 remBut.Location =
new Point(429, 242);
322 remBut.Name =
"remBut";
323 remBut.Size =
new Size(88, 23);
324 remBut.TabIndex = 25;
325 remBut.Text =
"Remove Level";
326 remBut.UseVisualStyleBackColor =
true;
327 remBut.Click += remBut_Click;
331 timer.Interval = 1000;
332 timer.Tick += timer_Tick;
336 AutoScaleDimensions =
new SizeF(7F, 15F);
337 AutoScaleMode = AutoScaleMode.Font;
338 BackColor =
Color.FromArgb(95, 122, 156);
339 ClientSize =
new Size(609, 295);
340 Controls.Add(remBut);
341 Controls.Add(focBut);
342 Controls.Add(label9);
343 Controls.Add(compBox);
344 Controls.Add(startBut);
345 Controls.Add(statusStrip);
346 Controls.Add(listBox);
347 Controls.Add(label8);
348 Controls.Add(label7);
349 Controls.Add(objBox);
350 Controls.Add(label1);
351 Controls.Add(focBox);
352 Controls.Add(addBut);
353 Controls.Add(setSizeBut);
354 Controls.Add(setToStageBut);
355 Controls.Add(label5);
357 Controls.Add(label6);
359 Controls.Add(label4);
361 Controls.Add(label3);
362 Controls.Add(label2);
364 ForeColor =
Color.White;
365 Icon = (Icon)resources.GetObject(
"$this.Icon");
366 Name =
"SlideImager";
367 Text =
"Slide Imager";
368 FormClosing += SlideImager_FormClosing;
369 ((System.ComponentModel.ISupportInitialize)xBox).EndInit();
370 ((System.ComponentModel.ISupportInitialize)yBox).EndInit();
371 ((System.ComponentModel.ISupportInitialize)hBox).EndInit();
372 ((System.ComponentModel.ISupportInitialize)wBox).EndInit();
373 ((System.ComponentModel.ISupportInitialize)focBox).EndInit();
374 statusStrip.ResumeLayout(
false);
375 statusStrip.PerformLayout();
381 private NumericUpDown xBox;
382 private Label label2;
383 private Label label3;
384 private Label label4;
385 private NumericUpDown yBox;
386 private Label label5;
387 private NumericUpDown hBox;
388 private Label label6;
389 private NumericUpDown wBox;
390 private Button setToStageBut;
391 private Button setSizeBut;
392 private Button addBut;
393 private Label label1;
394 private NumericUpDown focBox;
395 private ComboBox objBox;
396 private Label label7;
397 private Label label8;
398 private ListBox listBox;
399 private StatusStrip statusStrip;
400 private ToolStripStatusLabel toolStripStatusLabel;
401 private ToolStripProgressBar toolStripProgressBar;
402 private Button startBut;
403 private SaveFileDialog saveFileDialog;
404 private ComboBox compBox;
405 private Label label9;
406 private Button focBut;
407 private Button remBut;
408 private System.Windows.Forms.Timer timer;