private void comboBoxCreditName_SelectedValueChanged(object sender, EventArgs e) { if (CurrentCalc != null) { CurrentCalc.Clear(); } CurrentCalc = CalculatorLogic.InitializeCalc(this, groupBox1, comboBoxCreditName.SelectedItem.ToString()); }