/// <summary> /// Set subform type on the property of the subform control /// </summary> /// <param name="destSubformCtrl"></param> private void SetCalledSubformType(MgControl destSubformCtrl) { SubformType subformType = TaskDefinitionId.IsProgram == true ? SubformType.Program : SubformType.Subtask; String mgNumString = DisplayConvertor.Instance.toNum(((int)subformType).ToString(), null, 0); destSubformCtrl.setProp(PropInterface.PROP_TYPE_SUBFORM_TYPE, mgNumString); }
/// <summary> /// Set TaskDefinitionId on the property of the subform control /// </summary> /// <param name="destSubformCtrl">subform control</param> private void SetCalledTaskDefinitionId(MgControl destSubformCtrl) { // If 'Connect to' property was 'none' if (!destSubformCtrl.checkIfExistProp(PropInterface.PROP_TYPE_PRGTSK_NUM)) { destSubformCtrl.setProp(PropInterface.PROP_TYPE_PRGTSK_NUM, null); } Property prop = destSubformCtrl.getProp(PropInterface.PROP_TYPE_PRGTSK_NUM); prop.SetTaskDefinitionId(TaskDefinitionId); }