EndPluginModel.cs 833 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.ComponentModel;
  3. using TeamAAS.FlowEditor.Plugins;
  4. namespace Plugins.Standard.Models
  5. {
  6. [Serializable]
  7. /// <summary>
  8. /// 结束类型枚举
  9. /// </summary>
  10. public enum EndActionType
  11. {
  12. [Description("跳出当前循环")]
  13. Break,
  14. [Description("结束整个流程")]
  15. End
  16. }
  17. [Serializable]
  18. /// <summary>
  19. /// 结束插件模型
  20. /// </summary>
  21. public class EndPluginModel : BasePluginModel
  22. {
  23. private EndActionType _endType = EndActionType.Break;
  24. [Category("结束设置")]
  25. [DisplayName("结束类型")]
  26. [Description("Break=跳出当前循环, End=结束整个流程")]
  27. public EndActionType EndType
  28. {
  29. get => _endType;
  30. set => _endType = value;
  31. }
  32. }
  33. }