Exemple #1
0
        private void ButtonInsertEmployee_Click_1(object sender, RoutedEventArgs e)
        {
            EmployeeViewModel emp = new EmployeeViewModel();

            emp.FirstName = txtFirstName.Text;
            emp.LastName  = txtLastName.Text;
            emp.Title     = txtTitle.Text;
            emp.HomePhone = txtHomePhone.Text;

            DataGateway.InsertEmployee(emp);
        }