private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { if (applicationLogic == null) { return; } applicationLogic.CloseApplication(); }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { if (applicationLogic == null) { return; } if (GetMinimizeToTray()) { Hide(); e.Cancel = true; } else { applicationLogic.CloseApplication(); } }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { applicationLogic.CloseApplication(); }