示例#1
0
    private void reloadArchiveToolStripMenuItem_Click(object sender, EventArgs e)
    {
        ModInfo selMod = GetSelectedMod();

        if (!selMod)
        {
            return;
        }

        ModCache.ReCheckMods(new ModInfo[] { selMod });

        RefreshListView();
        RefreshTreeView();
    }
示例#2
0
    private void buttonRescanInstall_Click(object sender, EventArgs e)
    {
        buttonRescanInstall.Text = Language.GetLanguageText("Scanning...");
        buttonRescanInstall.Refresh();

        ModCache.ReCheckMods(modsData.modInfos);

        foreach (var mod in modsData.modInfos)
        {
            mod.CheckIfInstalled();
        }

        buttonRescanInstall.Text = Language.GetLanguageText("Re-Scan Installations");

        SaveData();

        olvModList.Refresh();
        RefreshTreeView();
    }