private void TemplateEditMenuItem_Click(object sender, EventArgs e)
 {
     if (sender is ToolStripMenuItem mi)
     {
         TemplateEditor te = new TemplateEditor(mi.Text, this.templManager);
         te.ShowDialog();
     }
 }
        private void AddTemplateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TemplateEditor te = new TemplateEditor(this.templManager);

            te.ShowDialog();
        }