private void actViewStatus() { if (status == null) { status = new FrmStatus(); status.Closed += (sender, args) => { status = null; }; UpdateStatusWindow(); } status.Show(); status.WindowState = FormWindowState.Normal; status.BringToFront(); }
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; }