public void btnNew_Click(object sender, System.EventArgs e) { string pnlName = Language.strNewPanel; if (input.InputBox(Language.strNewPanel, Language.strPanelName + ":", ref pnlName) == DialogResult.OK && !string.IsNullOrEmpty(pnlName)) { Runtime.AddPanel(pnlName); AddAvailablePanels(); cbPanels.SelectedItem = pnlName; cbPanels.Focus(); } }
public void btnNew_Click(System.Object sender, System.EventArgs e) { string pnlName = Interaction.InputBox(Language.strPanelName + ":", Language.strNewPanel, Language.strNewPanel, -1, -1); if (pnlName != "") { Runtime.AddPanel(pnlName); AddAvailablePanels(); cbPanels.SelectedItem = pnlName; cbPanels.Focus(); } }
private static Form SetConnectionForm(Form conForm, string connectionPanel) { var connectionForm = conForm ?? Runtime.WindowList.FromString(connectionPanel); if (connectionForm == null) { connectionForm = Runtime.AddPanel(connectionPanel); } else { ((ConnectionWindow)connectionForm).Show(frmMain.Default.pnlDock); } connectionForm.Focus(); return(connectionForm); }
private void mMenViewAddConnectionPanel_Click(object sender, EventArgs e) { Runtime.AddPanel(); }