Пример #1
0
        private void bAdd_Click(object sender, EventArgs e)
        {
            AddEditReport viewReport = new AddEditReport();

            viewReport.ShowInTaskbar = false;
            viewReport.FormClosing  += ViewReport_FormClosing;
            viewReport.ShowDialog();
        }
Пример #2
0
 private void bSettings_Click(object sender, EventArgs e)
 {
     if (item != null)
     {
         AddEditReport viewReport = new AddEditReport(item);
         viewReport.ShowInTaskbar = false;
         viewReport.ShowDialog();
     }
     else
     {
         MessageBox.Show("Выберите форму из списка.", "Ошибка!");
     }
 }