示例#1
0
        public frmAssign(User u, string uid, EnumRoles x, frmSearchUsers f)
            : this()
        {
            this.user = u;
            this.action = x;
            this.admFrame = f;

            this.txtAssn.Text = x.ToString();
            this.txtUserID.Text = uid;
            AdminHelper client = new AdminHelper();

            this.txtCurrRole.Text = ((EnumRoles)client.ViewUserRole(uid)).ToString();
            client.Close();
        }
        public frmAssignFacAdmin(User u, string uid, frmSearchUsers f)
            : this()
        {
            this.user = u;

            this.admFrame = f;
            this.txtUserID.Text = uid;
            AdminHelper client = new AdminHelper();

            this.txtCurrRole.Text = ((EnumRoles)client.ViewUserRole(uid)).ToString();
            client.Close();

            cboFaculty.ItemsSource = Enum.GetValues(typeof(Faculty));
        }