private void editToolStripMenuItem_Click(object sender, EventArgs e) { var x = comboBox1.SelectedItem; _form = new ConnectionForm(((ConnectionPair)comboBox1.SelectedItem), this); _form.Show(); }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { var newConn = new ConnectionPair(); ConfigManager.Connections.Add(newConn); _form = new ConnectionForm(newConn, this); _form.Show(); PutValues(); }