36 lines
877 B
C#
36 lines
877 B
C#
|
using DevExpress.XtraTreeList;
|
|||
|
using System;
|
|||
|
using System.Windows.Forms;
|
|||
|
|
|||
|
namespace HL_FristAidPlatform_EMRS
|
|||
|
{
|
|||
|
public partial class DiagnosticInfo : Form
|
|||
|
{
|
|||
|
public DiagnosticInfo(string value)
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
TextBoxValue = value;
|
|||
|
}
|
|||
|
|
|||
|
public string TextBoxValue
|
|||
|
{
|
|||
|
get { return textBox1.Text; }
|
|||
|
set { textBox1.Text = value; }
|
|||
|
}
|
|||
|
private void DiagnosticInfo_Load(object sender, EventArgs e)
|
|||
|
{
|
|||
|
treeList1.ExpandAll();
|
|||
|
}
|
|||
|
|
|||
|
private void treeList1_AfterCheckNode(object sender, NodeEventArgs e)
|
|||
|
{
|
|||
|
textBox1.Text=e.Node.GetDisplayText(this.treeListColumn1);
|
|||
|
}
|
|||
|
|
|||
|
private void DiagnosticInfo_FormClosed(object sender, FormClosedEventArgs e)
|
|||
|
{
|
|||
|
this.Dispose();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|