コード例 #1
0
        protected string ScheduleEditImageUrl(object dataItem)
        {
            ScheduledItem scheduledItem = ((KeyValuePair <string, ScheduledItem>)dataItem).Value;

            return(PermissionsHelper.CanEditFlowById(scheduledItem.FlowId) ? "../Images/UI/application_form_edit.png" :
                   "../Images/UI/application_form_magnify.png");
        }
コード例 #2
0
        protected virtual bool CanEditScheduleFlow(object dataItem)
        {
            KeyValuePair <string, string> pair = (KeyValuePair <string, string>)dataItem;

            return(PermissionsHelper.CanEditFlowById(pair.Key));
        }