Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
        private void button_mod_settings_Click(object sender, EventArgs e)
        {
            var selectedIndex = installedModsListBox.SelectedIndex;

            if (selectedIndex >= 0 && selectedIndex < _activeMods.Count)
            {
                var mod  = _activeMods.ElementAt(selectedIndex); //get mod
                var form = new FormModSettings(mod, _language);
                form.ShowDialog(this);                           //'this' is necessary for relative aligning
            }
        }
Esempio n. 2
0
        private void button_mod_settings_Click(object sender, EventArgs e)
        {
            var selectedItems = activeModsListView.SelectedItems;

            if (selectedItems.Count > 0)
            {
                var selectedMod = (selectedItems[0].Tag as Mod);
                var form        = new FormModSettings(selectedMod, _language);
                form.ShowDialog(this); //'this' is necessary for relative aligning
            }
        }
Esempio n. 3
0
 private void button_mod_settings_Click(object sender, EventArgs e)
 {
     var selectedIndex = installedModsListBox.SelectedIndex;
     if (selectedIndex >= 0 && selectedIndex < _activeMods.Count)
     {
         var mod = _activeMods.ElementAt(selectedIndex); //get mod
         var form = new FormModSettings(mod);
         form.ShowDialog(this); //'this' is necessary for relative aligning
     }
 }