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);
        }
Example #2
0
 private void mMenViewAddConnectionPanel_Click(object sender, EventArgs e)
 {
     _panelAdder.AddPanel();
 }