Ejemplo n.º 1
0
 private void NotifyIcon_MouseDown(object sender, MouseEventArgs e)
 {
     // Have to set up this stuff here, because the menu is laid out before Opening() is called on it after mouse-up.
     if (CurrentWorkspace != null)
     {
         bool bCanSyncNow      = CurrentWorkspace.CanSyncNow();
         bool bCanLaunchEditor = CurrentWorkspace.CanLaunchEditor();
         NotifyMenu_SyncNow.Visible       = CurrentWorkspace.CanSyncNow();
         NotifyMenu_LaunchEditor.Visible  = CurrentWorkspace.CanLaunchEditor();
         NotifyMenu_ExitSeparator.Visible = bCanSyncNow || bCanLaunchEditor;
     }
 }