Beispiel #1
0
 private void btnNewEmployee_Click(object sender, System.EventArgs e)
 {
     View.EmployeeV employeeForm = new View.EmployeeV {
         Owner = this
     };
     employeeForm.Show();
 }
Beispiel #2
0
        private void lbListEmployee_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int index = lbListEmployee.IndexFromPoint(e.Location);

            if (index != ListBox.NoMatches)
            {
                ListBox selectItem = sender as ListBox;
                Presenter.EmployeeBasicInfo item = selectItem.SelectedValue as Presenter.EmployeeBasicInfo;

                View.EmployeeV employeeForm = new View.EmployeeV(item.ID)
                {
                    Owner = this
                };
                employeeForm.Show();
            }
        }