ivr流程编辑器

CtlIVREndNode.cs 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using HySoft.IVRFlowEditor.IVRControlUtility;
  10. namespace HySoft.IVRFlowEditor.Propretity
  11. {
  12. public partial class CtlIVREndNode : UserControl
  13. {
  14. public CtlIVREndNode()
  15. {
  16. InitializeComponent();
  17. }
  18. public CtlIVREndNode(IVREndNode obj)
  19. {
  20. InitializeComponent();
  21. _IVREndNode = obj;
  22. this.Load += new EventHandler(CtlIVREndNode_Load);
  23. }
  24. private IVREndNode _IVREndNode;
  25. void CtlIVREndNode_Load(object sender, EventArgs e)
  26. {
  27. this.tb_NodeID.Text = _IVREndNode.Pos;
  28. this.tb_NodeName.Text = _IVREndNode.Name;
  29. this.rtb_Note.Text = _IVREndNode.Note;
  30. }
  31. private void btn_enter_Click(object sender, EventArgs e)
  32. {
  33. _IVREndNode.Name = tb_NodeName.Text;
  34. _IVREndNode.Note = rtb_Note.Text;
  35. this.FindForm().DialogResult = DialogResult.OK;
  36. this.FindForm().Close();
  37. }
  38. private void btn_cancel_Click(object sender, EventArgs e)
  39. {
  40. this.FindForm().DialogResult = DialogResult.No;
  41. this.FindForm().Close();
  42. }
  43. }
  44. }