Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
- 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
- {
- /// <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;
- }
- }
- }
|