示例#1
0
 private void actViewStatus()
 {
     if (status == null)
     {
         status = new FrmStatus();
         status.Closed += (sender, args) =>
         {
             status = null;
         };
         UpdateStatusWindow();
     }
     status.Show();
     status.WindowState = FormWindowState.Normal;
     status.BringToFront();
 }
示例#2
0
 private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     Shared.Options.Folders.ForEach(f => f.Stop());
     if (status != null)
     {
         status.Close();
         status = null;
     }
     // Notification icon must be removed from traybar
     nic.Visible = false;
 }