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); }
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); }