/// <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);
     }
 }
コード例 #2
0
 public AddNewFunctionWindow()
 {
     InitializeComponent();
     functionStorage  = new FunctionMySQL();
     currentFunctions = functionStorage.GetFunctions();
 }