private void mnuNewConnection_Click(object sender, EventArgs e) { NewConnectionForm newConn = new NewConnectionForm(); newConn.StartPosition = FormStartPosition.CenterParent; if (newConn.ShowDialog() != DialogResult.OK) { return; } Connection connection = newConn.Connection; ShowStoreManagerForm(connection); }
private void btnNewConnection_Click(object sender, EventArgs e) { NewConnectionForm newConn = new NewConnectionForm(); if (newConn.ShowDialog() != DialogResult.OK) { return; } Connection connection = newConn.Connection; Program.MainForm.ShowStoreManagerForm(newConn.Connection); //Add to Recent Connections Program.MainForm.AddRecentConnection(connection); this.Close(); }