private void button1_Click(object sender, EventArgs e) { if (textBox1.Text.Equals("CONFIRM")) { SystemB = (GCCoreAstronomy.AstronomySystem)comboBox1.Items[comboBox1.SelectedIndex]; } }
private void AddSystemComboValue(GCCoreAstronomy.AstronomySystem val) { comboBox1.Items.Add(val); if (GCCoreAstronomy.System == val) { comboBox1.SelectedIndex = comboBox1.Items.Count - 1; } }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text.Equals("CONFIRM")) { SystemB = (GCCoreAstronomy.AstronomySystem)comboBox1.Items[comboBox1.SelectedIndex]; GCDisplaySettings.Current.AdvFestivalFirstDay = checkBox1.Checked; } }