ivr流程编辑器

IVRDefinevar.cs 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using HySoft.IVRFlowEditor.Propretity;
  6. using HySoft.IVRFlowEditor.Model;
  7. namespace HySoft.IVRFlowEditor.IVRControlUtility
  8. {
  9. /// <summary>
  10. /// 定义变量节点
  11. /// </summary>
  12. [IVRAttribute("CELL_DEFINEVAR", Model.IVRSerializerType.节点,1)]
  13. public class IVRDefinevar : IVRControlBase
  14. {
  15. public IVRDefinevar(string name)
  16. {
  17. this.Name = name;
  18. CtlProperty = new CtlIVRDefinevar(this);
  19. DefVar = new List<IVRDefinevarDefVar>();
  20. CtlProperty.Cursor = System.Windows.Forms.Cursors.SizeAll;
  21. //CtlProperty.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  22. // CtlProperty.Size = _size;
  23. CtlProperty.Tag = this;
  24. }
  25. //public override System.Windows.Forms.Control GetProperty(List<FlowNode> node, string displayName, string valueName)
  26. //{
  27. // return base.GetProperty(node, displayName, valueName);
  28. //}
  29. [IVRAttribute("DefVar", Model.IVRSerializerType.节点,2, Object =typeof(List<IVRDefinevarDefVar>))]
  30. public List<IVRDefinevarDefVar> DefVar
  31. { get; set; }
  32. [IVRAttribute("Next", Model.IVRSerializerType.元素, 3, IsPosPoint = true)]
  33. public IVRControlBase Next
  34. { get; set; }
  35. }
  36. }