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