Пример #1
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            AddForm f = new AddForm(depId);

            f.ShowDialog();
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            AddForm form = new AddForm();

            form.Show();
        }