예제 #1
0
 public AddOrUpdateUser(user user)
 {
     InitializeComponent();
     this.user = user;
     LoadRole();
     avatar.Source     = EmployeeManagment.ByteToImage(user.avatar);
     lastName.Text     = user.lastName;
     firstName.Text    = user.firstName;
     email.Text        = user.email;
     pass.Text         = user.password;
     role.SelectedItem = context.role.Find(user.role);
 }
예제 #2
0
 public Admin()
 {
     InitializeComponent();
     avatar.Source        = EmployeeManagment.ByteToImage(Authorization.User.avatar);
     UserList.ItemsSource = context.user.ToList();
 }
예제 #3
0
 public Managers()
 {
     InitializeComponent();
     avatar.Source        = EmployeeManagment.ByteToImage(Authorization.User.avatar);
     WorkList.ItemsSource = context.accounting.ToList();
 }