private SinoUC_IM_Text CreateTextInput(MD_InputModel_Column _col) { SinoUC_IM_Text _valText = new SinoUC_IM_Text(); _valText.Margin = new Padding(0, 0, 0, 0); _valText.EditValue = GetEntityValue(_col); _valText.Anchor = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top); return(_valText); }
public void ChangeEntityData(MD_InputEntity DataEntity) { DataEntity.IsNewData = false; foreach (string _key in this.InputDict.Keys) { SinoUC_IM_Text _input = this.InputDict[_key]; string _val = (_input.EditValue == null) ? null : _input.EditValue.ToString(); if (DataEntity.InputData.ContainsKey(_key)) { DataEntity.InputData[_key] = _val; } else { DataEntity.InputData.Add(_key, _val); } } }