private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (App.LoginSession)
     {
         passwordInputText.Password = "";
         WindowEventHandler.WindowHidingClose(this, sender, e);
     }
     else
     {
         System.Environment.Exit(0);
     }
 }
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     WindowEventHandler.WindowHidingClose(this, sender, e);
 }