Example #1
0
        protected virtual void OnDataSourceChanged(DataSourceChangedEventArgs e)
        {
            EventHandler <DataSourceChangedEventArgs> handler = DataSourceChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        void column_DataSourceChanged(object sender, DataSourceChangedEventArgs e)
        {
            if (IsInDesignMode)
            {
                _data.BroadcastMessage = BroadCastMessage.Alarm1;
                return;
            }
            if (LibraryData.FuturamaSys == null)
            {
                throw new Exception("Currently no projectfile is opened");
            }

            _data = Data(e.MainUnitViewModel.Id * 12 + _relativeFlowId, e.BaseButtonId);


            RaisePropertyChanged(() => Alarm);
            RaisePropertyChanged(() => Alert);
            RaisePropertyChanged(() => IsEnabled);
            RaisePropertyChanged(() => ButtonId);
        }