private void CloseSimpleFleetWindow()
 {
     if (this.SimpleFleetWindow != null && this.SimpleFleetWindow.IsInitialized)
     {
         this.SimpleFleetWindow.Close();
         this.SimpleFleetWindow = null;
     }
 }
 private void CloseSimpleFleetWindow()
 {
     if (this.SimpleFleetWindow != null && this.SimpleFleetWindow.IsInitialized)
     {
         this.SimpleFleetWindow.Close();
         this.SimpleFleetWindow = null;
     }
 }
 private void ShowSimpleFleetWindow()
 {
     if (this.SimpleFleetWindow == null)
     {
         this.SimpleFleetWindow = new Views.SimpleFleetWindow { DataContext = Application.Current.MainWindow.DataContext };
         this.SimpleFleetWindow.Closed += (sender, e) =>
         {
             if (!this.SimpleFleetWindow.IsKcvClose)
             {
                 Data.Settings.Current.EnableSimpleFleet = false;
                 this.OnEnableSimpleFleetChange();
                 this.SimpleFleetWindow = null;
             }
         };
     }
     this.SimpleFleetWindow.Show();
 }
 private void ShowSimpleFleetWindow()
 {
     if (this.SimpleFleetWindow == null)
     {
         this.SimpleFleetWindow = new Views.SimpleFleetWindow {
             DataContext = Application.Current.MainWindow.DataContext
         };
         this.SimpleFleetWindow.Closed += (sender, e) =>
         {
             if (!this.SimpleFleetWindow.IsKcvClose)
             {
                 Data.Settings.Current.EnableSimpleFleet = false;
                 this.OnEnableSimpleFleetChange();
                 this.SimpleFleetWindow = null;
             }
         };
     }
     this.SimpleFleetWindow.Show();
 }