public ProjectViewModelProvider(IFirmwareSetConstructorViewModelProvider FirmwareSetConstructorViewModelProvider, IEventAggregator EventAggregator,
                                 BurningStatusViewModel BurningStatus)
 {
     _firmwareSetConstructorViewModelProvider = FirmwareSetConstructorViewModelProvider;
     _eventAggregator = EventAggregator;
     _burningStatus = BurningStatus;
 }
Exemplo n.º 2
0
 public BurningViewModel(ICollection<BurningOptionViewModel> BurningOptions,
                         ICollection<BurningMethodViewModel> BurningMethods,
                         BurningStatusViewModel BurningStatus)
 {
     this.BurningStatus = BurningStatus;
     this.BurningOptions = BurningOptions;
     this.BurningMethods = BurningMethods;
 }
 public BurningOptionViewModel(string Name, int ChannelNumber, BurningStatusViewModel GlobalBurningStatus)
 {
     this.GlobalBurningStatus = GlobalBurningStatus;
     this.ChannelNumber = ChannelNumber;
     this.Name = Name;
     BurnCommand = new DelegateCommand(OnActivated);
     Status = BurningOperationStatus.Ready;
     CancelBurningCommand = new DelegateCommand(() => _operation.Abort());
 }
 public BurningViewModelFactory(IBurningReceiptsCatalog BurningReceiptsCatalog, IIndexHelper IndexHelper, IExceptionService ExceptionService,
                                IBurningService BurningService, IEventAggregator EventAggregator, ISettingsService SettingsService,
                                BurningStatusViewModel BurningStatus)
 {
     _indexHelper = IndexHelper;
     _burningService = BurningService;
     _eventAggregator = EventAggregator;
     _settingsService = SettingsService;
     _burningStatus = BurningStatus;
 }
Exemplo n.º 5
0
        public MainViewModel(TargetSelectorViewModel TargetSelector, TargetPresenterViewModel TargetPresenter, IEventAggregator EventAggregator,
                             FileRequestServiceViewModel FileRequestServiceViewModel, ProjectManagerViewModelFactory ProjectManagerViewModelFactory,
                             IExceptionDialogSource ExceptionDialogSource, BurningStatusViewModel BurningStatus)
        {
            this.TargetSelector = TargetSelector;
            this.FileRequestServiceViewModel = FileRequestServiceViewModel;
            _projectManagerViewModelFactory = ProjectManagerViewModelFactory;
            this.BurningStatus = BurningStatus;
            this.TargetPresenter = TargetPresenter;
            this.ExceptionDialogSource = ExceptionDialogSource;

            EventAggregator.GetEvent<TargetSelectedEvent>().Subscribe(OnTargetSelected);
            ObsoleteEnvironment = Environment.OSVersion.Version.Major < 6
                                  || (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor < 1);
        }
Exemplo n.º 6
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>();
        }