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); }
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; }