private void MenuItemInstallFiles_ItemClick(object sender, ItemClickEventArgs e) { InstalledModInfo installedModInfo = MainWindow.Settings.GetInstalledMods(ModItem.GetPlatform(), ModItem.CategoryId, ModItem.Id); bool isInstalled = installedModInfo != null; if (isInstalled) { DialogExtensions.ShowTransferModsDialog(this, TransferType.UninstallMods, ModItem.GetCategory(Categories), ModItem); } else { DialogExtensions.ShowTransferModsDialog(this, TransferType.InstallMods, ModItem.GetCategory(Categories), ModItem); } }
private void MenuItemInstallFiles_ItemClick(object sender, ItemClickEventArgs e) { DialogExtensions.ShowTransferModsDialog(this, TransferType.InstallMods, ModItem.GetCategory(Categories), ModItem); }