/// <summary>
 /// 窗口显示关闭
 /// </summary>
 public void ChangeWindowVisible()
 {
     App.Current.MainWindow = App.Current.MainWindow ?? WindowService.Current.GetMainWindow();
     if (IsVisible)
     {
         App.Current.MainWindow.Show();
         App.Current.MainWindow.WindowState = WindowState.Normal;
         this.Activate();
         User32Window.FlashWindow(new WindowInteropHelper(App.Current.MainWindow).Handle);
     }
     else
     {
         App.Current.MainWindow.WindowState = WindowState.Minimized;
         App.Current.MainWindow.Hide();
         //App.Current.MainWindow.Visibility = Visibility.Collapsed;
     }
 }