static public ToolboxForm GetToolboxForm(ILog log, INotificator notificator) { if (toolboxForm == null) { toolboxForm = new ToolboxForm(log, notificator); toolboxForm.Show(); toolboxForm.FormClosed += ToolboxForm_FormClosed; openForms.Add(toolboxForm); } return(toolboxForm); }
static private void ToolboxForm_FormClosed(object sender, FormClosedEventArgs e) { toolboxForm = null; OpenForm_FormClosed(sender, e); }