private Form SetConnectionForm(Form conForm, string connectionPanel) { var connectionForm = conForm ?? Runtime.WindowList.FromString(connectionPanel); if (connectionForm == null) { connectionForm = _panelAdder.AddPanel(connectionPanel); } else { ((ConnectionWindow)connectionForm).Show(FrmMain.Default.pnlDock); } connectionForm.Focus(); return(connectionForm); }
private void mMenViewAddConnectionPanel_Click(object sender, EventArgs e) { _panelAdder.AddPanel(); }