示例#1
0
 /// <summary>
 /// Creates a new instance of the <see cref="AlarmStatusUserControl"/> class.
 /// </summary>
 public AlarmStatusUserControl()
 {
     InitializeComponent();
     m_dataContext = new RaisedAlarms(20, false);
     m_dataContext.PropertyChanged += ViewModel_PropertyChanged;
     this.DataContext = m_dataContext;
 }
示例#2
0
 /// <summary>
 /// Creates a new instance of the <see cref="AlarmStatusUserControl"/> class.
 /// </summary>
 public AlarmStatusUserControl()
 {
     InitializeComponent();
     m_dataContext = new RaisedAlarms(20, false);
     m_dataContext.PropertyChanged += new PropertyChangedEventHandler(ViewModel_PropertyChanged);
     this.DataContext = m_dataContext;
 }