| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Drawing;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using HySoft.IVRFlowEditor.IVRControlUtility;
- namespace HySoft.IVRFlowEditor.Propretity
- {
- public partial class CtlIVREndNode : UserControl
- {
- public CtlIVREndNode()
- {
- InitializeComponent();
- }
- public CtlIVREndNode(IVREndNode obj)
- {
- InitializeComponent();
- _IVREndNode = obj;
- this.Load += new EventHandler(CtlIVREndNode_Load);
- }
- private IVREndNode _IVREndNode;
- void CtlIVREndNode_Load(object sender, EventArgs e)
- {
- this.tb_NodeID.Text = _IVREndNode.Pos;
- this.tb_NodeName.Text = _IVREndNode.Name;
- this.rtb_Note.Text = _IVREndNode.Note;
- }
-
-
- private void btn_enter_Click(object sender, EventArgs e)
- {
- _IVREndNode.Name = tb_NodeName.Text;
- _IVREndNode.Note = rtb_Note.Text;
-
- this.FindForm().DialogResult = DialogResult.OK;
- this.FindForm().Close();
- }
- private void btn_cancel_Click(object sender, EventArgs e)
- {
- this.FindForm().DialogResult = DialogResult.No;
- this.FindForm().Close();
- }
- }
- }
|