public Add(Users.List sender)
        {
            InitializeComponent();
            //Code para mailagay ang mga role sa Filter tulad ng Chef,admin,waiter at iba pa.
            List <Role> roles = Enum.GetValues(typeof(Role)).Cast <Role>().ToList();

            cboRole.ItemsSource = roles;
            this._sender        = sender;
        }
Esempio n. 2
0
        public Update(User user, Users.List sender)
        {
            InitializeComponent();
            this.txtFirstName.Text = user.FirstName;
            this.txtLastName.Text  = user.LastName;
            this.txtUserName.Text  = user.UserName;
            this._user             = user;
            this._sender           = sender;

            cboRole.ItemsSource   = Enum.GetValues(typeof(Role)).Cast <Role>().ToList();
            cboRole.SelectedValue = user.Role;
        }
 public Add(Users.List sender)
 {
     InitializeComponent();
     cboRole.ItemsSource = Enum.GetValues(typeof(Role)).Cast <Role>().ToList();
     this._sender        = sender;
 }