private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { try { SessionsCTRL.Close(); } catch (Exception exception) { GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception); } }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { try { SessionsCTRL.Close(); if (m_masterForm == null) { m_application.Stop(); } } catch (Exception exception) { GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception); } }
private void MainPage_PageClosing(object sender, RoutedEventArgs e) { try { SessionsCTRL.Close(); if (m_masterPage == null) { m_application.Stop(); } } catch (Exception exception) { GuiUtils.HandleException(String.Empty, GuiUtils.CallerName(), exception); } }