/// <summary> /// 构造函数 /// </summary> /// <param name="ucText"></param> public frmKBSCommonSectionVIEW(ZYTextInput inputText) { InitializeComponent(); App.UsControlStyle(this); this.inputText = inputText; text = new frmText(); text.Dock = DockStyle.Fill; IsTextInput = true; }
public FrmKBSVIEW(ZYTextInput inputText) { InitializeComponent(); frmKBSCommonSectionVIEW frmKBSSEC = new frmKBSCommonSectionVIEW(inputText); this.Controls.Add(frmKBSSEC); frmKBSSEC.Dock = DockStyle.Fill; }
/// <summary> /// 构造函数 /// </summary> /// <param name="ucText"></param> public frmKBSCommonVIEW(ZYTextInput inputText) { InitializeComponent(); App.UsControlStyle(this); text = new frmText(); text.Dock = DockStyle.Fill; this.panel6.Controls.Add(text); this.inputText = inputText; IsTextInput = true; this.btnComplexSave.Visible = false; }
public void setfrKnowledge(ZYTextInput _select, ZYTextDocument _myDocument) { if (this.myDocument == null) { this.myDocument = _myDocument; } Flag = true; this.mySelect = _select; enable(); FindNode(this.tvDirectory.Nodes, _select.Name, _select.ListSource); this.tvDirectory_AfterSelect(null, null); this.tvDirectory.Focus(); }
private void TvMacrosElements_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { if (this.tvMacrosElements.SelectedNode.Tag is T_MACROS_ELEMENTS) { var entity = this.tvMacrosElements.SelectedNode.Tag.As <T_MACROS_ELEMENTS>(); var emrDoc = editorControl.EMRDoc; List <ZYTextElement> elements = new List <ZYTextElement>(); ArrayList list1 = new ArrayList(); entity.Name.ToList().ForEach(c => { ZYTextChar zc = new ZYTextChar() { OwnerDocument = emrDoc, Char = c }; elements.Add(zc); list1.Add(zc); }); if (entity.Join != null) { entity.Join.ToList().ForEach(c => { ZYTextChar zc = new ZYTextChar() { OwnerDocument = emrDoc, Char = c }; elements.Add(zc); list1.Add(zc); }); } ZYTextInput input = new ZYTextInput() { OwnerDocument = emrDoc, Name = entity.Name, Text = entity.Default_Value ?? "", cFormat = entity.Format }; elements.Add(input); list1.Add(input); emrDoc.Content.InsertRangeElements(list1); } }