/// <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; }
/// <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; }