private void DoNew() { if (this.ActiveMdiChild is frmConnection) { ((frmConnection)this.ActiveMdiChild).DoNew(); } else { frmConnect oForm = new frmConnect(); oForm.ShowDialog(this); } }
private void frmMain_Load(object sender, System.EventArgs e) { Globals.MainForm = this; this.cboDatabases.ImageList = this.ilDatabases; this.Show(); frmConnect oForm = new frmConnect(); oForm.ShowDialog(this); Application.Idle += new EventHandler(Application_Idle); Globals.LoadAppSettings(); }
private void mnuFileConnect_Click(object sender, System.EventArgs e) { frmConnect oForm = new frmConnect(); oForm.ShowDialog(this); }