ivr流程编辑器

IVRControlBase.cs 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows.Forms;
  6. using HySoft.IVRFlowEditor.Model;
  7. using HySoft.FlowEditor;
  8. namespace HySoft.IVRFlowEditor.IVRControlUtility
  9. {
  10. public class IVRControlBase : FlowNode
  11. {
  12. public IVRControlBase()
  13. {
  14. }
  15. /// <summary>
  16. /// 继承类负责实例化对应的控件
  17. /// </summary>
  18. public Control CtlProperty
  19. {
  20. get;
  21. set;
  22. }
  23. /// <summary>
  24. /// xml流程文件中的POS属性所定义的属性,程序中无意义
  25. /// </summary>
  26. [IVRAttribute("Pos", Model.IVRSerializerType.元素,1)]
  27. public new string Pos
  28. {
  29. get
  30. {
  31. return base.ID;
  32. }
  33. set
  34. {
  35. base.ID = value;
  36. }
  37. }
  38. /// <summary>
  39. /// 节点名称
  40. /// </summary>
  41. [IVRAttribute("Name", Model.IVRSerializerType.元素, 0)]
  42. public new string Name
  43. {
  44. get
  45. {
  46. return base.Name;
  47. }
  48. set
  49. {
  50. base.Name = value;
  51. }
  52. }
  53. /// <summary>
  54. /// 节点的宽度
  55. /// </summary>
  56. [IVRAttribute("IVR_Width", Model.IVRSerializerType.元素, 80)]
  57. public new int IVR_Width
  58. {
  59. get
  60. {
  61. return base.Control.Width;
  62. }
  63. set
  64. {
  65. base.Control.Width = value;
  66. }
  67. }
  68. /// <summary>
  69. /// 节点的高度
  70. /// </summary>
  71. [IVRAttribute("IVR_Height", Model.IVRSerializerType.元素, 81)]
  72. public new int IVR_Height
  73. {
  74. get
  75. {
  76. return base.Control.Height;
  77. }
  78. set
  79. {
  80. base.Control.Height = value;
  81. }
  82. }
  83. /// <summary>
  84. /// IVR流程中X轴坐标
  85. /// </summary>
  86. [IVRAttribute("IVR_X", Model.IVRSerializerType.元素, 82)]
  87. public new int IVR_X
  88. {
  89. get
  90. {
  91. return base.CenterPoint.X;
  92. }
  93. set { }
  94. }
  95. /// <summary>
  96. /// IVR流程中Y轴坐标
  97. /// </summary>
  98. [IVRAttribute("IVR_Y", Model.IVRSerializerType.元素, 83)]
  99. public new int IVR_Y
  100. {
  101. get
  102. {
  103. return base.CenterPoint.Y;
  104. }
  105. set { }
  106. }
  107. /// <summary>
  108. /// IVR编辑器中节点的名称
  109. /// </summary>
  110. [IVRAttribute("IVR_Name", Model.IVRSerializerType.元素, 84)]
  111. public new string IVR_Name
  112. {
  113. get
  114. {
  115. return base.Name;
  116. }
  117. set { base.Name = value; }
  118. }
  119. /// <summary>
  120. /// 节点的描述
  121. /// </summary>
  122. [IVRAttribute("Note", Model.IVRSerializerType.元素, 99)]
  123. public new string Note
  124. {
  125. get
  126. {
  127. return base.Note;
  128. }
  129. set
  130. {
  131. base.Note = value;
  132. }
  133. }
  134. /// <summary>
  135. /// 流程节点(主要在跳转子流程节点中作为选择项使用)
  136. /// </summary>
  137. public List<IVRFlowInfo> IVRFlows
  138. { get; set; }
  139. }
  140. }