终端一体化运控平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

42 linhas
1.1 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmart.Model
  7. {
  8. public class DelegationNotifi
  9. {
  10. private volatile static DelegationNotifi _Instance;
  11. public static DelegationNotifi GetInstance => _Instance ?? (_Instance = new DelegationNotifi());
  12. private DelegationNotifi() { }
  13. /// <summary>
  14. /// 新增设备时的数据验证
  15. /// </summary>
  16. public Func<DeviceManagermentResult, bool> AddDeviceVerify { get; set; }
  17. /// <summary>
  18. /// 取消按钮通知
  19. /// </summary>
  20. public Action<DeviceManagermentResult> Cancel { get; set; }
  21. /// <summary>
  22. /// 确认按钮通知
  23. /// </summary>
  24. public Action<DeviceManagermentResult> Confirm { get; set; }
  25. /// <summary>
  26. /// 变量保存通知
  27. /// </summary>
  28. public Action VariableSave { get; set; }
  29. /// <summary>
  30. /// 变量名更改通知
  31. /// </summary>
  32. public Action<int> VarNameChanged { get; set; }
  33. }
  34. }