/// <summary> /// Populates the ComboBox with all functions found in the database. /// </summary> private void PopulateComboBox() { comboBoxCurrentFunction.Items.Clear(); functions = functionStorage.GetFunctions(); foreach (KeyValuePair <int, string> i in functions) { comboBoxCurrentFunction.Items.Add(i.Value); } }
public AddNewFunctionWindow() { InitializeComponent(); functionStorage = new FunctionMySQL(); currentFunctions = functionStorage.GetFunctions(); }