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); }
public Admin() { InitializeComponent(); avatar.Source = EmployeeManagment.ByteToImage(Authorization.User.avatar); UserList.ItemsSource = context.user.ToList(); }
public Managers() { InitializeComponent(); avatar.Source = EmployeeManagment.ByteToImage(Authorization.User.avatar); WorkList.ItemsSource = context.accounting.ToList(); }