ivr流程编辑器

FrmProPretity.cs 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using HySoft.IVRFlowEditor;
  10. using HySoft.IVRFlowEditor.IVRControl;
  11. using HySoft.IVRFlowEditor.IVRControlUtility;
  12. namespace IVRFlowUI
  13. {
  14. public partial class FrmProPretity : Form
  15. {
  16. public FrmProPretity(ref IVRControlBase ivr)
  17. {
  18. InitializeComponent();
  19. _IVR = ivr;
  20. this.Controls.Add(ivr.CtlProperty);
  21. this.Width = ivr.CtlProperty.Width+20;
  22. this.Height = ivr.CtlProperty.Height+30;
  23. // ivr.CtlProperty.Dock = DockStyle.Fill;
  24. this.Controls.Add(ivr.CtlProperty);
  25. }
  26. private IVRControlBase _IVR;
  27. private void btn_enter_Click(object sender, EventArgs e)
  28. {
  29. this.DialogResult = System.Windows.Forms.DialogResult.OK;
  30. this.Close();
  31. }
  32. private void btn_cancel_Click(object sender, EventArgs e)
  33. {
  34. this.DialogResult = System.Windows.Forms.DialogResult.No;
  35. this.Close();
  36. }
  37. }
  38. }