private void btnUninstallAll_Click(object sender, EventArgs e) { var clientMods = new List <ClientCommon.Data.ClientMod>(modController.getLocalMods()); foreach (var mod in clientMods) { D2MP.DeleteMod(new ClientCommon.Methods.DeleteMod { Mod = mod }); } }
private void removeModToolStripMenuItem_Click(object sender, EventArgs e) { var mod = (RemoteMod)modsGridView.SelectedRows[0].Tag; var parameterMod = new ClientCommon.Data.ClientMod { name = mod.name }; D2MP.DeleteMod(new ClientCommon.Methods.DeleteMod { Mod = parameterMod }); }
private void updateModToolStripMenuItem_Click(object sender, EventArgs e) { var mod = (RemoteMod)modsGridView.SelectedRows[0].Tag; var parameterMod = new ClientCommon.Data.ClientMod { name = mod.name }; D2MP.DeleteMod(new ClientCommon.Methods.DeleteMod { Mod = parameterMod }); if (!modController.installQueue.Contains(mod)) { modController.installQueue.Enqueue(mod); } modController.InstallQueued(); }
private void btnUpdateAll_Click(object sender, EventArgs e) { List <RemoteMod> needsUpdate = modController.checkUpdates(); foreach (var mod in needsUpdate) { var parameterMod = new ClientCommon.Data.ClientMod { name = mod.name }; D2MP.DeleteMod(new ClientCommon.Methods.DeleteMod { Mod = parameterMod }); installModBrowser(mod.name); //D2MP.InstallMod(new ClientCommon.Methods.InstallMod { Mod = parameterMod, url = mod.url }); } btnUpdateAll.Text = "Update All"; btnUpdateAll.Enabled = false; refreshTable(); }
private void btnUpdateAll_Click(object sender, EventArgs e) { List <RemoteMod> needsUpdate = modController.checkUpdates(); foreach (var mod in needsUpdate) { var parameterMod = new ClientCommon.Data.ClientMod { name = mod.name }; D2MP.DeleteMod(new ClientCommon.Methods.DeleteMod { Mod = parameterMod }); if (!modController.installQueue.Contains(mod)) { modController.installQueue.Enqueue(mod); } } btnUpdateAll.Text = "Update All"; btnUpdateAll.Enabled = false; modController.InstallQueued(); refreshTable(); }