private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     try
     {
         WinWrapper.UnregisterAll();
     }
     catch (Exception ex)
     {
         Logger.GetLogger().CatchException("MainWindow", "Window_Closing", ex.Message);
         throw;
     }
 }