Ejemplo n.º 1
0
 internal void InvokeProjectChanged(ProjectChangedEvent e)
 {
     if (e == null)
     {
         return;
     }
     e.Invoke();
 }
Ejemplo n.º 2
0
        public ProjectViewModel(int CellKindId, int CellModificationId,
                                BlockDetailsViewModel BlockDetails,
                                FirmwareSetConstructorViewModel FirmwareSetConstructor, IEventAggregator EventAggregator,
                                BurningStatusViewModel BurningStatus)
        {
            this.BurningStatus = BurningStatus;
            this.CellKindId = CellKindId;
            this.CellModificationId = CellModificationId;
            this.FirmwareSetConstructor = FirmwareSetConstructor;
            this.BlockDetails = BlockDetails;

            FirmwareSetConstructor.SomethingChanged += FirmwareSetConstructorOnSomethingChanged;
            BlockDetails.AssemblyDate.PropertyChanged += BlockDetailsOnPropertyChanged;
            BlockDetails.SerialNumber.PropertyChanged += BlockDetailsOnPropertyChanged;

            _projectChangedEvent = EventAggregator.GetEvent<ProjectChangedEvent>();
        }
Ejemplo n.º 3
0
 public void Handle(ProjectChangedEvent eventToHandle)
 {
     updateSaveProjectButtons(true);
 }
Ejemplo n.º 4
0
 private void OnChange(ProjectChangedEvent evt)
 {
     HasChanges = true;
 }