private void botListToolStripMenuItem_Click(object sender, EventArgs e) { foreach (DockContent c in DockPanel.Contents) { if (c is BotListForm) { c.Show(DockPanel); return; } } BotListForm t = new BotListForm(); t.Show(DockPanel); }
private void MainForm_Load(object sender, EventArgs e) { FOutputForm = new OutputForm(); FOutputForm.Show(DockPanel); WriteLog("Bot Studio Started."); BotTemplatesForm t = new BotTemplatesForm(AppContext.BotTplList); t.Show(DockPanel); BotListForm l = new BotListForm(); l.Show(DockPanel); AppContext.BotTplList.Update(); }