using BPA.Helper; 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 { /// /// Window2.xaml 的交互逻辑 /// public partial class Window2 : Window { public Window2() { InitializeComponent(); AlarmHelper.Init(); AlarmHelper.GetInstance("设备1").TT = true; AlarmHelper.GetInstance("设备1").CC = true; AlarmHelper.GetInstance("设备2").TT = true; AlarmHelper.GetInstance("设备2").CC = true; //AlarmHelper.GetInstance().TT = true; //AlarmHelper.GetInstance().CC = true; } private void Button_Click(object sender, RoutedEventArgs e) { var res = AlarmHelper.Alarms; } } }