Example #1
0
        private void configureButton_Click(object sender, EventArgs e)
        {
            if (patchesForm == null)
            {
                patchesForm = new PatchesForm(this);
            }

            if (!patchesForm.Visible)
            {
                patchesForm.Show();
            }
        }
Example #2
0
        public Form1()
        {
            InitializeComponent();

            patchesForm = new PatchesForm(this);

            versionComboItems.Add("1", "Vanilla");
            versionComboItems.Add("2", "The Burning Crusade");
            versionComboItems.Add("3", "Wrath of the Lich King");

            versionCombo.DataSource    = new BindingSource(versionComboItems, null);
            versionCombo.DisplayMember = "Value";
            versionCombo.ValueMember   = "Key";
        }