Skip to content
This repository
Browse code

0.4.3

UI Changes

Signed-off-by: Eric Holmes <eric@ejholmes.net>
  • Loading branch information...
commit f41e33bd4a788358e36d256e47614bd74d81a0f6 1 parent c9f88cd
Eric Holmes authored April 05, 2010
BIN  uTorrent Notifier/Output/setup.exe
Binary file not shown
4  uTorrent Notifier/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@
32 32
 // You can specify all the values or you can default the Build and Revision Numbers 
33 33
 // by using the '*' as shown below:
34 34
 // [assembly: AssemblyVersion("1.0.*")]
35  
-[assembly: AssemblyVersion("0.4.2.0")]
36  
-[assembly: AssemblyFileVersion("0.4.2.0")]
  35
+[assembly: AssemblyVersion("0.4.3.0")]
  36
+[assembly: AssemblyFileVersion("0.4.3.0")]
79  uTorrent Notifier/SettingsForm.Designer.cs
@@ -54,6 +54,7 @@ private void InitializeComponent()
54 54
             this.lblProwlAPIKey = new System.Windows.Forms.Label();
55 55
             this.cbShowBalloonTips = new System.Windows.Forms.CheckBox();
56 56
             this.groupBox4 = new System.Windows.Forms.GroupBox();
  57
+            this.cbCheckForUpdates = new System.Windows.Forms.CheckBox();
57 58
             this.cbRunOnStartup = new System.Windows.Forms.CheckBox();
58 59
             this.tabControl1 = new System.Windows.Forms.TabControl();
59 60
             this.tpGeneral = new System.Windows.Forms.TabPage();
@@ -63,10 +64,9 @@ private void InitializeComponent()
63 64
             this.cbProwlNotification_TorentAdded = new System.Windows.Forms.CheckBox();
64 65
             this.cbTorrentNotification_DownloadComplete = new System.Windows.Forms.CheckBox();
65 66
             this.tbAbout = new System.Windows.Forms.TabPage();
66  
-            this.label2 = new System.Windows.Forms.Label();
67  
-            this.lblVersion = new System.Windows.Forms.Label();
68 67
             this.linkLabel1 = new System.Windows.Forms.LinkLabel();
69  
-            this.cbCheckForUpdates = new System.Windows.Forms.CheckBox();
  68
+            this.lblVersion = new System.Windows.Forms.Label();
  69
+            this.label2 = new System.Windows.Forms.Label();
70 70
             this.groupBox1.SuspendLayout();
71 71
             this.groupBox2.SuspendLayout();
72 72
             this.groupBox3.SuspendLayout();
@@ -234,7 +234,7 @@ private void InitializeComponent()
234 234
             this.groupBox3.Controls.Add(this.lblProwlAPIKey);
235 235
             this.groupBox3.Location = new System.Drawing.Point(6, 6);
236 236
             this.groupBox3.Name = "groupBox3";
237  
-            this.groupBox3.Size = new System.Drawing.Size(244, 70);
  237
+            this.groupBox3.Size = new System.Drawing.Size(244, 72);
238 238
             this.groupBox3.TabIndex = 5;
239 239
             this.groupBox3.TabStop = false;
240 240
             this.groupBox3.Text = "Settings";
@@ -287,6 +287,16 @@ private void InitializeComponent()
287 287
             this.groupBox4.TabStop = false;
288 288
             this.groupBox4.Text = "Windows";
289 289
             // 
  290
+            // cbCheckForUpdates
  291
+            // 
  292
+            this.cbCheckForUpdates.AutoSize = true;
  293
+            this.cbCheckForUpdates.Location = new System.Drawing.Point(9, 45);
  294
+            this.cbCheckForUpdates.Name = "cbCheckForUpdates";
  295
+            this.cbCheckForUpdates.Size = new System.Drawing.Size(113, 17);
  296
+            this.cbCheckForUpdates.TabIndex = 4;
  297
+            this.cbCheckForUpdates.Text = "Check for updates";
  298
+            this.cbCheckForUpdates.UseVisualStyleBackColor = true;
  299
+            // 
290 300
             // cbRunOnStartup
291 301
             // 
292 302
             this.cbRunOnStartup.AutoSize = true;
@@ -314,6 +324,7 @@ private void InitializeComponent()
314 324
             // 
315 325
             // tpGeneral
316 326
             // 
  327
+            this.tpGeneral.BackColor = System.Drawing.SystemColors.ControlLightLight;
317 328
             this.tpGeneral.Controls.Add(this.groupBox2);
318 329
             this.tpGeneral.Controls.Add(this.groupBox1);
319 330
             this.tpGeneral.Controls.Add(this.groupBox4);
@@ -323,28 +334,27 @@ private void InitializeComponent()
323 334
             this.tpGeneral.Size = new System.Drawing.Size(256, 240);
324 335
             this.tpGeneral.TabIndex = 0;
325 336
             this.tpGeneral.Text = "General";
326  
-            this.tpGeneral.UseVisualStyleBackColor = true;
327 337
             // 
328 338
             // tbProwl
329 339
             // 
  340
+            this.tbProwl.BackColor = System.Drawing.SystemColors.ControlLightLight;
330 341
             this.tbProwl.Controls.Add(this.groupBox3);
331 342
             this.tbProwl.Location = new System.Drawing.Point(4, 22);
332 343
             this.tbProwl.Name = "tbProwl";
333 344
             this.tbProwl.Padding = new System.Windows.Forms.Padding(3);
334  
-            this.tbProwl.Size = new System.Drawing.Size(256, 215);
  345
+            this.tbProwl.Size = new System.Drawing.Size(256, 240);
335 346
             this.tbProwl.TabIndex = 1;
336 347
             this.tbProwl.Text = "Prowl";
337  
-            this.tbProwl.UseVisualStyleBackColor = true;
338 348
             // 
339 349
             // tpNotifications
340 350
             // 
  351
+            this.tpNotifications.BackColor = System.Drawing.SystemColors.ControlLightLight;
341 352
             this.tpNotifications.Controls.Add(this.groupBox5);
342 353
             this.tpNotifications.Location = new System.Drawing.Point(4, 22);
343 354
             this.tpNotifications.Name = "tpNotifications";
344  
-            this.tpNotifications.Size = new System.Drawing.Size(256, 215);
  355
+            this.tpNotifications.Size = new System.Drawing.Size(256, 240);
345 356
             this.tpNotifications.TabIndex = 2;
346 357
             this.tpNotifications.Text = "Notifications";
347  
-            this.tpNotifications.UseVisualStyleBackColor = true;
348 358
             // 
349 359
             // groupBox5
350 360
             // 
@@ -352,7 +362,7 @@ private void InitializeComponent()
352 362
             this.groupBox5.Controls.Add(this.cbTorrentNotification_DownloadComplete);
353 363
             this.groupBox5.Location = new System.Drawing.Point(6, 6);
354 364
             this.groupBox5.Name = "groupBox5";
355  
-            this.groupBox5.Size = new System.Drawing.Size(244, 206);
  365
+            this.groupBox5.Size = new System.Drawing.Size(244, 72);
356 366
             this.groupBox5.TabIndex = 4;
357 367
             this.groupBox5.TabStop = false;
358 368
             this.groupBox5.Text = "Settings";
@@ -379,6 +389,7 @@ private void InitializeComponent()
379 389
             // 
380 390
             // tbAbout
381 391
             // 
  392
+            this.tbAbout.BackColor = System.Drawing.SystemColors.ControlLightLight;
382 393
             this.tbAbout.Controls.Add(this.linkLabel1);
383 394
             this.tbAbout.Controls.Add(this.lblVersion);
384 395
             this.tbAbout.Controls.Add(this.label2);
@@ -387,26 +398,6 @@ private void InitializeComponent()
387 398
             this.tbAbout.Size = new System.Drawing.Size(256, 240);
388 399
             this.tbAbout.TabIndex = 3;
389 400
             this.tbAbout.Text = "About";
390  
-            this.tbAbout.UseVisualStyleBackColor = true;
391  
-            // 
392  
-            // label2
393  
-            // 
394  
-            this.label2.AutoSize = true;
395  
-            this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
396  
-            this.label2.Location = new System.Drawing.Point(14, 17);
397  
-            this.label2.Name = "label2";
398  
-            this.label2.Size = new System.Drawing.Size(120, 16);
399  
-            this.label2.TabIndex = 0;
400  
-            this.label2.Text = "uTorrent Notifier";
401  
-            // 
402  
-            // lblVersion
403  
-            // 
404  
-            this.lblVersion.AutoSize = true;
405  
-            this.lblVersion.Location = new System.Drawing.Point(14, 35);
406  
-            this.lblVersion.Name = "lblVersion";
407  
-            this.lblVersion.Size = new System.Drawing.Size(37, 13);
408  
-            this.lblVersion.TabIndex = 1;
409  
-            this.lblVersion.Text = "v0.4.1";
410 401
             // 
411 402
             // linkLabel1
412 403
             // 
@@ -419,15 +410,24 @@ private void InitializeComponent()
419 410
             this.linkLabel1.Text = "Eric Holmes";
420 411
             this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
421 412
             // 
422  
-            // cbCheckForUpdates
  413
+            // lblVersion
423 414
             // 
424  
-            this.cbCheckForUpdates.AutoSize = true;
425  
-            this.cbCheckForUpdates.Location = new System.Drawing.Point(9, 45);
426  
-            this.cbCheckForUpdates.Name = "cbCheckForUpdates";
427  
-            this.cbCheckForUpdates.Size = new System.Drawing.Size(113, 17);
428  
-            this.cbCheckForUpdates.TabIndex = 4;
429  
-            this.cbCheckForUpdates.Text = "Check for updates";
430  
-            this.cbCheckForUpdates.UseVisualStyleBackColor = true;
  415
+            this.lblVersion.AutoSize = true;
  416
+            this.lblVersion.Location = new System.Drawing.Point(14, 35);
  417
+            this.lblVersion.Name = "lblVersion";
  418
+            this.lblVersion.Size = new System.Drawing.Size(37, 13);
  419
+            this.lblVersion.TabIndex = 1;
  420
+            this.lblVersion.Text = "v0.4.1";
  421
+            // 
  422
+            // label2
  423
+            // 
  424
+            this.label2.AutoSize = true;
  425
+            this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  426
+            this.label2.Location = new System.Drawing.Point(14, 17);
  427
+            this.label2.Name = "label2";
  428
+            this.label2.Size = new System.Drawing.Size(120, 16);
  429
+            this.label2.TabIndex = 0;
  430
+            this.label2.Text = "uTorrent Notifier";
431 431
             // 
432 432
             // SettingsForm
433 433
             // 
@@ -441,8 +441,11 @@ private void InitializeComponent()
441 441
             this.Icon = global::uTorrentNotifier.Properties.Resources.un_icon;
442 442
             this.Name = "SettingsForm";
443 443
             this.Text = "uTorrent Notifier";
  444
+            this.MaximizeBox = false;
  445
+            this.ControlBox = false;
444 446
             this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
445 447
             this.Shown += new System.EventHandler(this.Settings_Shown);
  448
+            this.Resize += new System.EventHandler(this.SettingsForm_Resize);
446 449
             this.groupBox1.ResumeLayout(false);
447 450
             this.groupBox1.PerformLayout();
448 451
             this.groupBox2.ResumeLayout(false);
12  uTorrent Notifier/SettingsForm.cs
@@ -104,14 +104,14 @@ void utorrent_TorrentAdded(List<TorrentFile> added)
104 104
 
105 105
         private void BackToSystray()
106 106
         {
  107
+            this.Hide();
107 108
             this.WindowState = FormWindowState.Minimized;
108  
-            this.ShowInTaskbar = false;
109 109
         }
110 110
 
111 111
         private void RestoreFromSystray()
112 112
         {
  113
+            this.Show();
113 114
             this.WindowState = FormWindowState.Normal;
114  
-            this.ShowInTaskbar = true;
115 115
         }
116 116
 
117 117
         private void Settings_Shown(object sender, System.EventArgs e)
@@ -187,6 +187,14 @@ private void systrayIcon_MouseDoubleClick(object sender, MouseEventArgs e)
187 187
             this.RestoreFromSystray();
188 188
         }
189 189
 
  190
+        void SettingsForm_Resize(object sender, System.EventArgs e)
  191
+        {
  192
+            if (this.WindowState == FormWindowState.Minimized)
  193
+            {
  194
+                this.Hide();
  195
+            }
  196
+        }
  197
+
190 198
         private void tsmiPauseAll_Click(object sender, EventArgs e)
191 199
         {
192 200
             this.utorrent.PauseAll();

0 notes on commit f41e33b

Please sign in to comment.
Something went wrong with that request. Please try again.