| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 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;
- using HySoft.IVRFlowEditor.Utility;
- namespace HySoft.IVRFlowEditor.IVRControl
- {
- public partial class CtlIVRBranchVar : UserControl
- {
- IVRBranchVar _IVRBranchVar;
- public CtlIVRBranchVar(IVRBranchVar obj)
- {
- InitializeComponent();
- _IVRBranchVar = obj;
-
- this.Load += new EventHandler(CtlIVRBranchVar_Load);
- }
- void CtlIVRBranchVar_Load(object sender, EventArgs e)
- {
- this.tb_Name.Text = _IVRBranchVar.Value;
- this.cmb_NumberType.DataSource = GlobalController.GetComBoBoxofIVR();
- this.cmb_NumberType.DisplayMember = "Note";//2017-5-8将Name改为Note
- this.cmb_NumberType.ValueMember = "ID";
- if (_IVRBranchVar.Pos != null)
- this.cmb_NumberType.SelectedValue = _IVRBranchVar.Pos;
- }
- public void Enter()
- {
- _IVRBranchVar.Value = this.tb_Name.Text;
- _IVRBranchVar.Pos = this.cmb_NumberType.SelectedValue.ToString();
- }
- }
- }
|