private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     GlobalNotify.OnLoadingChange(false);
 }
 private void MyMainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     Hide();
     e.Cancel = true;
     GlobalNotify.OnWindowClose();
 }