Exemple #1
0
 public guiMods Command_OpenMods()
 {
     if (_mods == null)
     {
         _mods          = new guiMods(this);
         _mods.Closing += (sender, args) => {
             if (_home?.Visible == true)
             {
                 args.Cancel = true;
                 _mods.Hide();
             }
         };
     }
     _mods.ShowOrFocus();
     return(_mods);
 }
Exemple #2
0
		public guiMods Command_OpenMods() {
			if (_mods == null) {
				_mods = new guiMods(this);
				_mods.Closing += (sender, args) => {
					if (_home?.Visible == true) {
						args.Cancel = true;
						_mods.Hide();
					}
				};
			}
			_mods.ShowOrFocus();
			return _mods;
		}