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