Esempio n. 1
0
        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
                });
            }
        }
Esempio n. 2
0
        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
            });
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
        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();
        }
Esempio n. 5
0
        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();
        }