private void mnuNewConnection_Click(object sender, EventArgs e) { NewConnectionForm newConn = new NewConnectionForm(); newConn.StartPosition = FormStartPosition.CenterParent; if (newConn.ShowDialog() == DialogResult.OK) { IStorageProvider manager = newConn.Connection; StoreManagerForm storeManager = new StoreManagerForm(manager); storeManager.MdiParent = this; storeManager.Show(); //Add to Recent Connections this.AddRecentConnection(manager); } }
private void btnNewConnection_Click(object sender, EventArgs e) { NewConnectionForm newConn = new NewConnectionForm(); if (newConn.ShowDialog() == DialogResult.OK) { IGenericIOManager manager = newConn.Connection; StoreManagerForm storeManager = new StoreManagerForm(manager); storeManager.MdiParent = Program.MainForm; storeManager.Show(); //Add to Recent Connections Program.MainForm.AddRecentConnection(manager); this.Close(); } }
private void btnNewConnection_Click(object sender, EventArgs e) { NewConnectionForm newConn = new NewConnectionForm(); if (newConn.ShowDialog() == DialogResult.OK) { IStorageProvider manager = newConn.Connection; StoreManagerForm storeManager = new StoreManagerForm(manager); storeManager.MdiParent = Program.MainForm; storeManager.Show(); //Add to Recent Connections Program.MainForm.AddRecentConnection(manager); this.Close(); } }
private void mnuNewConnection_Click(object sender, EventArgs e) { NewConnectionForm newConn = new NewConnectionForm(); newConn.StartPosition = FormStartPosition.CenterParent; if (newConn.ShowDialog() == DialogResult.OK) { IGenericIOManager manager = newConn.Connection; StoreManagerForm storeManager = new StoreManagerForm(manager); storeManager.MdiParent = this; storeManager.Show(); //Add to Recent Connections this.AddRecentConnection(manager); } }