Ejemplo n.º 1
0
 private void cb_staff_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     ServiceRStaff.Staff s = (ServiceRStaff.Staff)cb_staff.SelectedItem;
     l_firstname.Content = s.StaffFirstName;
     l_username.Content  = s.StaffUsername;
     l_lastName.Content  = s.StaffLastName;
 }
Ejemplo n.º 2
0
        public gererUser()
        {
            InitializeComponent();
            ServiceRStaff.Staff s = new ServiceRStaff.Staff();
            ServiceRStaff.StaffServiceClient client = new ServiceRStaff.StaffServiceClient();

            List <ServiceRStaff.Staff> l = new List <ServiceRStaff.Staff>();

            l = client.get_list_staff().ToList();
            cb_staff.ItemsSource       = l;
            cb_staff.DisplayMemberPath = "StaffFirstName";
        }