private void AddButton_Click(object sender, EventArgs e) { AddForm f = new AddForm(depId); f.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { AddForm form = new AddForm(); form.Show(); }