private void Application_Exit(object sender, ExitEventArgs e) { try { if (MonitorManager.IsTwoMonitor) { LockDisplayWindow.Close(); } MainWnd.Close(); Taskbar.Show(); if (CurrentProceess?.IsProcessOpened ?? false) { CurrentProceess.StopProcess(); } Repository.Dispose(); Logger.Info("End seanse in VrManager!!!!!"); } catch (Exception ex) { SendException(ex); } }
private void Application_Exit(object sender, ExitEventArgs e) { try { Convert.ToUInt32("sdsa"); if (MonitorManager.IsTwoMonitor) { LockDisplayWindow.Close(); } MainWnd.Close(); Taskbar.Show(); if (CurrentProceess?.IsProcessOpened ?? false) { CurrentProceess.StopProcess(); } Repository.Dispose(); Logger.Info("End seanse in VrManager!!!!!"); } catch (Exception ex) { App.Logger.Error($"exeption {ex.Message} ||| in class {nameof(App)} and method {GetStackTraseMethod().GetMethod().Name}"); } }
private void OnClose(object sender, RoutedEventArgs e) { MainWnd.Close(); }