Changeset 22 for trunk/MacFaceFloat/MainForm.cs
- Timestamp:
- Nov 19, 2004, 3:08:37 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/MainForm.cs
r21 r22 21 21 public class MainForm : Misuzilla.Windows.Forms.AlphaForm 22 22 { 23 private System.Windows.Forms.NotifyIcon notifyIcon; 23 24 private System.Windows.Forms.ContextMenu contextMenu; 24 25 private System.Windows.Forms.MenuItem menuItemPatternSelect; … … 67 68 68 69 void InitializeComponent() { 70 this.notifyIcon = new System.Windows.Forms.NotifyIcon(); 69 71 this.menuItemPatternSelect = new System.Windows.Forms.MenuItem(); 70 72 this.menuItemConfigure = new System.Windows.Forms.MenuItem(); 71 73 this.menuItemExit = new System.Windows.Forms.MenuItem(); 72 74 this.contextMenu = new System.Windows.Forms.ContextMenu(); 75 76 // 77 // notifyIcon 78 // 79 this.notifyIcon.Text = "MacFace"; 80 this.notifyIcon.Icon = this.Icon; 81 this.notifyIcon.Visible = true; 82 this.notifyIcon.ContextMenu = this.contextMenu; 83 73 84 // 74 85 // menuItemPatternSelect … … 191 202 _currentFaceDef = newFaceDef; 192 203 _facePath = _currentFaceDef.Path; 204 notifyIcon.Text = "MacFace - " + _currentFaceDef.Title; 193 205 prevUsage = -1; 194 206 prevMarkers = -1; … … 264 276 private void MainForm_Closing(object sender, CancelEventArgs e) 265 277 { 278 notifyIcon.Visible = false; 279 266 280 // Û¶ 267 281 _config.Opacity = (int) (this.Opacity * 100);
Note: See TracChangeset
for help on using the changeset viewer.