终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

57 rindas
1.3 KiB

  1. using BPASmartClient.Compiler;
  2. using BPASmartClient.SCADAControl;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. namespace BeDesignerSCADA.CustomerControls
  18. {
  19. /// <summary>
  20. /// GraphStar.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class GraphStar : UserControl, IExecutable
  23. {
  24. public event EventHandler PropertyChange; //声明一个事件
  25. public GraphStar()
  26. {
  27. InitializeComponent();
  28. Width = 100;
  29. Height = 100;
  30. }
  31. public string ControlType => "图形";
  32. private bool isExecuteState;
  33. public bool IsExecuteState
  34. {
  35. get { return isExecuteState; }
  36. set
  37. {
  38. isExecuteState = value;
  39. if (IsExecuteState)
  40. {
  41. IsEnabled = true;
  42. Register();
  43. Style = null;
  44. }
  45. }
  46. }
  47. public void Register()
  48. {
  49. }
  50. }
  51. }