private void botTemplateListToolStripMenuItem_Click(object sender, EventArgs e) { foreach (DockContent c in DockPanel.Contents) { if (c is BotTemplatesForm) { c.Show(DockPanel); return; } } BotTemplatesForm t = new BotTemplatesForm(AppContext.BotTplList); 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(); }