public void Load(JobDTO jobParam, ActionType actionTypeParam) { actionType = actionTypeParam; Job = jobParam; ShowBusyIndicator(); customFieldService.GetAllCustomFieldsDescription((res, exp) => appController.BeginInvokeOnDispatcher(() => { if (exp == null) { JobCustomFieldDescriptionList = res; if (actionType == ActionType.ManageJobCustomFields) { setCurrentJobCustomFields(); } HideBusyIndicator(); } else { HideBusyIndicator(); appController.HandleException(exp); } }), "Job"); }
public void Load(UnitIndexDTO unitIndexParam, ActionType actionTypeParam) { actionType = actionTypeParam; UnitIndex = unitIndexParam; ShowBusyIndicator(); customFieldService.GetAllCustomFieldsDescription((res, exp) => appController.BeginInvokeOnDispatcher(() => { if (exp == null) { UnitIndexCustomFieldDescriptionList = res; if (actionType == ActionType.ManageUnitIndexCustomFields) { setCurrentUnitCustomFields(); } HideBusyIndicator(); } else { HideBusyIndicator(); appController.HandleException(exp); } }), "UnitIndex"); }