public ConnectionForm(ConnectionPair pair, Form1 f) { InitializeComponent(); SelectedConnectionPair = pair; _fbd = new FolderBrowserDialog(); textBox1.Text = SelectedConnectionPair.Host; textBox2.Text = SelectedConnectionPair.LocalDir; _rootForm = f; }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { var newConn = new ConnectionPair(); ConfigManager.Connections.Add(newConn); _form = new ConnectionForm(newConn, this); _form.Show(); PutValues(); }