private void ButtonAddClick(object sender, EventArgs e) { using (var form = new AddForm()) { if (form.ShowDialog(this) == DialogResult.OK) { _listBoxEmployee.Items.Add(form.Employee); } } }
private void ButtonAddClick(object sender, EventArgs e) { using (var form = new AddForm()) { if (form.ShowDialog(this) == DialogResult.OK) { _listBoxEmployee.Items.Add(form.Employee); } } }