ivr流程编辑器

CtlIVRBranchVar.cs 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. using HySoft.IVRFlowEditor.Utility;
  11. namespace HySoft.IVRFlowEditor.IVRControl
  12. {
  13. public partial class CtlIVRBranchVar : UserControl
  14. {
  15. IVRBranchVar _IVRBranchVar;
  16. public CtlIVRBranchVar(IVRBranchVar obj)
  17. {
  18. InitializeComponent();
  19. _IVRBranchVar = obj;
  20. this.Load += new EventHandler(CtlIVRBranchVar_Load);
  21. }
  22. void CtlIVRBranchVar_Load(object sender, EventArgs e)
  23. {
  24. this.tb_Name.Text = _IVRBranchVar.Value;
  25. this.cmb_NumberType.DataSource = GlobalController.GetComBoBoxofIVR();
  26. this.cmb_NumberType.DisplayMember = "Note";//2017-5-8将Name改为Note
  27. this.cmb_NumberType.ValueMember = "ID";
  28. if (_IVRBranchVar.Pos != null)
  29. this.cmb_NumberType.SelectedValue = _IVRBranchVar.Pos;
  30. }
  31. public void Enter()
  32. {
  33. _IVRBranchVar.Value = this.tb_Name.Text;
  34. _IVRBranchVar.Pos = this.cmb_NumberType.SelectedValue.ToString();
  35. }
  36. }
  37. }