//Add Subdivision button private void button1_Click(object sender, EventArgs e) { SubDivForm addNewSubDiv = new SubDivForm(); addNewSubDiv.ShowDialog(); PreviosDataLoad(); }
private void SubDivEditBtn_Click(object sender, EventArgs e) { if (SelectedSubDiv == null) { MessageBox.Show("Нужно выбрать подразделение"); } else { SubDivForm addNewSubDiv = new SubDivForm(SelectedSubDiv); addNewSubDiv.ShowDialog(); PreviosDataLoad(); } }