Пример #1
0
 private void buttonAddTemplate_Click(object sender, EventArgs e)
 {
     if (currentDetail is TemplateBaseDetail)
     {
         TemplateBaseDetailAddToDataBaseForm form = new TemplateBaseDetailAddToDataBaseForm((TemplateBaseDetail)currentDetail);
         form.ShowDialog();
     }
     else
     {
         TemplateDetailAddToDataBaseForm form = new TemplateDetailAddToDataBaseForm((TemplateDetail)currentDetail);
         form.ShowDialog();
     }
 }
Пример #2
0
        private void buttonAddTemplate_Click(object sender, EventArgs e)
        {
            TemplateDetailAddToDataBaseForm form = new TemplateDetailAddToDataBaseForm(currentDirective);

            form.ShowDialog();
        }