public FirmwareSelectorDialogViewModel(FirmwareSelectorViewModel Selector, FirmwarePackageViewModel PreselectedPackage = null)
        {
            this.Selector = Selector;
            SelectedPackage = PreselectedPackage;

            this.Selector.SelectedPackageChanged += SelectorOnSelectedPackageChanged;

            CloseDialogRequest = new InteractionRequest<Notification>();
            SubmitCommand = new DelegateCommand(Submit, CanSubmit);
            CancelCommand = new DelegateCommand(Cancel);
        }
Beispiel #2
0
 public FakeFirmwareSelectorViewModel(string Name, PackageInformation PackageInformation)
     : base(Name)
 {
     _packageInformation = PackageInformation;
     SelectedPackage = new FirmwarePackageViewModel("sdfsdf", new FirmwareVersionViewModel("3.2", "LDS", DateTime.Now),
                                                    new FirmwarePackageAvailabilityViewModel(true), ReleaseStatus.Unknown, null);
 }
 private void FirmwareSelectorOnSelectedPackageChanged(object Sender, EventArgs Args)
 {
     SelectedFirmware = FirmwareSelector.SelectedPackage;
     OnSelectedFirmwareChanged();
 }