public void ShowProperty(UIElement wf11Element) { this._wfslFinish = wf11Element as WFSLFinish; if (this._wfslFinish == null) return; this.txtUniqueID.Text = this._wfslFinish.UniqueID; this.txtName.Text = this._wfslFinish.Title; if (!string.IsNullOrEmpty(_wfslFinish.WfslFinishProperty.DealForm)) { cboDealForm.SelectedItem = new KeyValuePair<string, string>(_wfslFinish.WfslFinishProperty.DealForm, GetDealFormName(_wfslFinish.WfslFinishProperty.DealForm)); } else { cboDealForm.SelectedItem = null; } }
public UIElement Clone() { UIElement wf11Element = new WFSLFinish(this._CanvasLeft, this._CanvasTop, this._CanvasWidth, this._CanvasHeight); ((IWFSLElement)wf11Element).Container = this.Container; ((IWFSLElement)wf11Element).InitXY(); Point point = this.GetMe(); point.X += 10; point.Y += 10; ((IWFSLElement)wf11Element).ShowShadow(point, WFSLPointType.Precision, wf11Element); point = this.GetShadow(); point.X += 10; point.Y += 10; ((IWFSLElement)wf11Element).ShowMe(point, wf11Element); return wf11Element; }