예제 #1
0
        public void UpdateEmployee()
        {
            EmployeesContent.Children.Clear();
            using (UserContext db = new UserContext())
            {
                var users = db.Users.Where(t => t.position == "Driver");

                foreach (User u in users)
                {
                    userRow ur = new userRow(u.Name, u.position, u.state);
                    EmployeesContent.Children.Add(ur);
                }
            }
        }
예제 #2
0
 public userRowChangeEvent(userRow row, global::System.Data.DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }