| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 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.Utility;
- using HySoft.IVRFlowEditor.Model;
- using HySoft.IVRFlowEditor.IVRControlUtility;
- namespace HySoft.IVRFlowEditor.IVRControl
- {
- public partial class CtlIVRInputVar : UserControl
- {
- IVRInputVar _IVRInputVar;
- public CtlIVRInputVar(IVRInputVar obj)
- {
- InitializeComponent();
- _IVRInputVar = obj;
- this.Load += new EventHandler(CtlIVRInputVar_Load);
- }
- void CtlIVRInputVar_Load(object sender, EventArgs e)
- {
- this.cmb_Data1.Text = _IVRInputVar.VarVal;
- GlobalController.BindComBoBoxOfEnumDesc(this.cmb_Type1, GlobalController.GetEnumByComBoBoxValueOFDesc<NumberType>(_IVRInputVar.VarType.ToString()));
- }
-
- public void Enter()
- {
- _IVRInputVar.VarVal = this.cmb_Data1.Text;
- _IVRInputVar.VarType = GlobalController.GetEnumByComBoBoxValueOFDesc<NumberType>(cmb_Type1.Text);
- }
- private void cmb_Type1_SelectedIndexChanged(object sender, EventArgs e)
- {
- GlobalController.BindComboBoxOFVar(this.cmb_Data1, GlobalController.GetEnumByComBoBoxValueOFDesc<NumberType>(cmb_Type1.Text));
-
- }
- }
- }
|