private bool GetEnabledState()
        {
            bool enabled = false;

            switch (formState)
            {
            case EntryFormState.Create:
                enabled = accessControl.CanAccess("MappingUserToAuthParam_Input");
                break;

            case EntryFormState.Update:
                enabled = accessControl.CanAccess("MappingUserToAuthParam_Edit");
                break;

            default:
                break;
            }

            return(enabled);
        }
Esempio n. 2
0
        private bool GetEnabledState()
        {
            bool enabled = false;

            switch (formState)
            {
            case EntryFormState.Create:
                enabled = accessControl.CanAccess("Position_Input");
                break;

            case EntryFormState.Update:
                enabled = accessControl.CanAccess("Position_Edit");
                break;

            default:
                break;
            }

            return(enabled);
        }