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"); }
protected virtual bool CanEditScheduleFlow(object dataItem) { KeyValuePair <string, string> pair = (KeyValuePair <string, string>)dataItem; return(PermissionsHelper.CanEditFlowById(pair.Key)); }