예제 #1
0
        private void FillCombo()
        {
            //Fill status options
            cbxStatus.DataSource   = Enum.GetValues(typeof(Enums.Status));
            cbxStatus.SelectedItem = Enums.Status.Active;

            //Fill Roles option
            cbxRole.DataSource    = applicationFacade.GetActiveRoles();
            cbxRole.ValueMember   = "RoleId";
            cbxRole.DisplayMember = "RoleName";
        }