|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using Microsoft.Toolkit.Mvvm.ComponentModel;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Controls.Primitives;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Effects;
- using System.Windows.Media.Imaging;
- using System.Windows.Shapes;
- using BPASmartClient.CustomResource.Pages.Model;
-
- namespace WPFDemo
- {
- /// <summary>
- /// Window2.xaml 的交互逻辑
- /// </summary>
- public partial class Window2 : Window
- {
- public Window2()
- {
- InitializeComponent();
- AlarmHelper<Class2>.Init();
- AlarmHelper<Class2>.GetInstance("设备1").TT = true;
- AlarmHelper<Class2>.GetInstance("设备1").CC = true;
- AlarmHelper<Class2>.GetInstance("设备2").TT = true;
- AlarmHelper<Class2>.GetInstance("设备2").CC = true;
-
- //AlarmHelper<Class2>.GetInstance().TT = true;
- //AlarmHelper<Class2>.GetInstance().CC = true;
-
- }
-
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- var res = AlarmHelper<Class2>.Alarms;
- }
- }
- }
|