private void btnAdd_Click(object sender, EventArgs e)
 {
     if (tabMain.SelectedIndex == 0)
     {
         // add a new template
         var frm = new ManageTemplates(ManageTemplatesModes.Select);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             // get the selected templates
             _templateList.AddRange(frm.SelectedTemplates);
             templateBindingSource.ResetBindings(false);
         }
     }
 }
        private void mnuManTemplates_Click(object sender, EventArgs e)
        {
            var manTmp = new ManageTemplates();

            manTmp.ShowDialog();
        }