//Update Connection names Combobox public void updateConnectionList() { cl.getConnections(); comboBoxConnectionName.Items.Clear(); comboBoxConnectionName.ResetText(); foreach (Connection cn in cl.connectionList) { comboBoxConnectionName.Items.Add(cn.name); } }
//refresh comboBoxes with connection names public void updateConnectionList() { Console.WriteLine("updateConnectionList()"); cl.getConnections(); comboBoxSourceUrl.Items.Clear(); comboBoxSourceUrl.ResetText(); comboBoxDestinationUrl.Items.Clear(); comboBoxDestinationUrl.ResetText(); foreach (Connection conn in cl.connectionList) { comboBoxSourceUrl.Items.Add(conn.name); comboBoxDestinationUrl.Items.Add(conn.name); } }