public void ShowProperty(UIElement wf11Element) { this._wfslLine = wf11Element as WFSLLine; if (this._wfslLine == null) return; this.txtUniqueID.Text = this._wfslLine.UniqueID; this.txtName.Text = this._wfslLine.Title; if (!string.IsNullOrEmpty(_wfslLine.LineProperty.DealForm)) { cboDealForm.SelectedItem = new KeyValuePair<string, string>(_wfslLine.LineProperty.DealForm, GetDealFormName(_wfslLine.LineProperty.DealForm)); } else { cboDealForm.SelectedItem = null; } if (_wfslLine.LineProperty.DealWayType > 0) { txtDealWayType.SelectedItem = new KeyValuePair<int, string>(_wfslLine.LineProperty.DealWayType, GetDealWayTypeName(_wfslLine.LineProperty.DealWayType)); } else { txtDealWayType.SelectedIndex = 0; } }
public UIElement Clone() { UIElement wf11Element = new WFSLLine(this._CanvasLeft, this._CanvasTop, this._CanvasWidth, this._CanvasHeight); ((IWFSLElement)wf11Element).Container = this.Container; ((WFSLLine)wf11Element).wfslLineShape.plShadow.Points.Clear(); for (int i = 0; i < this.wfslLineShape.plShadow.Points.Count; i++) ((WFSLLine)wf11Element).wfslLineShape.plShadow.Points.Add(this.wfslLineShape.plShadow.Points[i]); Point point = this.wfslLineShape.plShadow.Points[0]; ((IWFSLElement)wf11Element).SetXY(point); point.X += 10; point.Y += 10; ((IWFSLElement)wf11Element).ShowShadow(point, WFSLPointType.Excursion, wf11Element); ((IWFSLElement)wf11Element).ShowMe(point, wf11Element); return wf11Element; }