终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

Window2.xaml.cs 1.3 KiB

1 rok temu
2 lat temu
2 lat temu
2 lat temu
2 lat temu
2 lat temu
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using BPA.Helper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  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.Controls.Primitives;
  11. using System.Windows.Data;
  12. using System.Windows.Documents;
  13. using System.Windows.Input;
  14. using System.Windows.Media;
  15. using System.Windows.Media.Effects;
  16. using System.Windows.Media.Imaging;
  17. using System.Windows.Shapes;
  18. using BPASmartClient.CustomResource.Pages.Model;
  19. namespace WPFDemo
  20. {
  21. /// <summary>
  22. /// Window2.xaml 的交互逻辑
  23. /// </summary>
  24. public partial class Window2 : Window
  25. {
  26. public Window2()
  27. {
  28. InitializeComponent();
  29. AlarmHelper<Class2>.Init();
  30. AlarmHelper<Class2>.GetInstance("设备1").TT = true;
  31. AlarmHelper<Class2>.GetInstance("设备1").CC = true;
  32. AlarmHelper<Class2>.GetInstance("设备2").TT = true;
  33. AlarmHelper<Class2>.GetInstance("设备2").CC = true;
  34. //AlarmHelper<Class2>.GetInstance().TT = true;
  35. //AlarmHelper<Class2>.GetInstance().CC = true;
  36. }
  37. private void Button_Click(object sender, RoutedEventArgs e)
  38. {
  39. var res = AlarmHelper<Class2>.Alarms;
  40. }
  41. }
  42. }