Example #1
0
        private void FindAndInstallMod()
        {
            System.Windows.Forms.OpenFileDialog fd = new System.Windows.Forms.OpenFileDialog
            {
                // Set filter options and filter index.
                Filter      = Helpers._("FileDialog.Filter") + " (.zip)|*.zip",
                FilterIndex = 1,
                Multiselect = true
            };

            // Process input if the user clicked OK.
            if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Mods.AddLocalMod(fd.FileName);
                InstalledModsTab.Focus();
            }
        }