public FirmwareSetComponentViewModel(int ModuleIndex, string ModuleName, FirmwareSelectorViewModel FirmwareSelector)
        {
            this.FirmwareSelector = FirmwareSelector;
            this.ModuleName = ModuleName;
            this.ModuleIndex = ModuleIndex;

            FirmwareSelector.SelectedPackageChanged += FirmwareSelectorOnSelectedPackageChanged;
        }
        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);
        }