public EditProcessPropertiesHelper(IWfProcess process, IWfProcessDescriptor processDesp, PropertyValueCollection properties, bool syncMSObject) { process.NullCheck("process"); processDesp.NullCheck("processDesp"); properties.NullCheck("properties"); this._Process = process; this._ProcessDescriptor = processDesp; this._Properties = properties; this._SyncMainStream = syncMSObject; }
/// <summary> /// 仅复制目标集合中已有的属性 /// </summary> /// <param name="cpvc"></param> /// <param name="pvc"></param> public void ClientToServer(IEnumerable<ClientPropertyValue> cpvc, PropertyValueCollection pvc) { cpvc.NullCheck("cpvc"); pvc.NullCheck("pvc"); foreach (ClientPropertyValue cpv in cpvc) { if (pvc.ContainsKey(cpv.Key)) ClientPropertyValueConverter.Instance.ClientToServer(cpv, pvc[cpv.Key]); } }
/// <summary> /// 仅复制目标集合中已有的属性 /// </summary> /// <param name="cpvc"></param> /// <param name="pvc"></param> public void ClientToServer(IEnumerable <ClientPropertyValue> cpvc, PropertyValueCollection pvc) { cpvc.NullCheck("cpvc"); pvc.NullCheck("pvc"); foreach (ClientPropertyValue cpv in cpvc) { if (pvc.ContainsKey(cpv.Key)) { ClientPropertyValueConverter.Instance.ClientToServer(cpv, pvc[cpv.Key]); } } }