private void toolStripButtonConceptTemplate_Click(object sender, EventArgs e)
{
DocTemplateDefinition docTemplate = null;
if (this.m_conceptleaf != null)
{
docTemplate = this.m_conceptleaf.Definition;
}
else
{
docTemplate = this.m_conceptroot.ApplicableTemplate;
}
using (FormSelectTemplate form = new FormSelectTemplate(docTemplate, this.m_project, this.m_conceptroot.ApplicableEntity))
{
if (form.ShowDialog(this) == DialogResult.OK && form.SelectedTemplate != null)
{
if (this.m_conceptleaf != null)
{
this.m_conceptleaf.Definition = form.SelectedTemplate;
this.m_conceptleaf.Items.Clear();
}
else
{
this.m_conceptroot.ApplicableTemplate = form.SelectedTemplate;
this.m_conceptroot.ApplicableItems.Clear();
}
this.LoadUsage();
this.LoadInheritance();
}
}
}