private void bAddNewTemplate_Click(object sender, RibbonControlEventArgs e)
        {
            FormTemplateConfiguration ftc = new FormTemplateConfiguration(Globals.ThisAddIn.dataModel);

            ftc.ShowDialog();

            // update the default template list. The showdialog box till dialog is closed.
            PopulateTemplatesFromDataModel();
        }
        private void bEditSelected_Click(object sender, RibbonControlEventArgs e)
        {
            if (ddDefaultTemplate.Items.Count > 0)
            {
                string jiraTemplateName = ddDefaultTemplate.SelectedItem.Label;

                FormTemplateConfiguration ftc = new FormTemplateConfiguration(Globals.ThisAddIn.dataModel, jiraTemplateName);
                ftc.ShowDialog();

                // update the default template list. The showdialog box till dialog is closed.
                PopulateTemplatesFromDataModel();
            }
        }