private void StoreVersionChanged(object sender, VersionChangeEventArgs e) { try { this.UpdateInProgress = true; int oldVersion = e.OldVersion; int newVersion = e.NewVersion; List <Project> deletedProject = this.ProjectSet.UpdateSet(oldVersion, newVersion); List <CollapsedCategory> deletedCollapsedCategory = this.CollapsedCategorySet.UpdateSet(oldVersion, newVersion); List <Circuit> deletedCircuit = this.CircuitSet.UpdateSet(oldVersion, newVersion); List <DevicePin> deletedDevicePin = this.DevicePinSet.UpdateSet(oldVersion, newVersion); List <Gate> deletedGate = this.GateSet.UpdateSet(oldVersion, newVersion); List <LogicalCircuit> deletedLogicalCircuit = this.LogicalCircuitSet.UpdateSet(oldVersion, newVersion); List <Pin> deletedPin = this.PinSet.UpdateSet(oldVersion, newVersion); List <CircuitProbe> deletedCircuitProbe = this.CircuitProbeSet.UpdateSet(oldVersion, newVersion); List <Constant> deletedConstant = this.ConstantSet.UpdateSet(oldVersion, newVersion); List <CircuitButton> deletedCircuitButton = this.CircuitButtonSet.UpdateSet(oldVersion, newVersion); List <Memory> deletedMemory = this.MemorySet.UpdateSet(oldVersion, newVersion); List <LedMatrix> deletedLedMatrix = this.LedMatrixSet.UpdateSet(oldVersion, newVersion); List <Splitter> deletedSplitter = this.SplitterSet.UpdateSet(oldVersion, newVersion); List <Sensor> deletedSensor = this.SensorSet.UpdateSet(oldVersion, newVersion); List <Sound> deletedSound = this.SoundSet.UpdateSet(oldVersion, newVersion); List <GraphicsArray> deletedGraphicsArray = this.GraphicsArraySet.UpdateSet(oldVersion, newVersion); List <CircuitSymbol> deletedCircuitSymbol = this.CircuitSymbolSet.UpdateSet(oldVersion, newVersion); List <Wire> deletedWire = this.WireSet.UpdateSet(oldVersion, newVersion); List <TextNote> deletedTextNote = this.TextNoteSet.UpdateSet(oldVersion, newVersion); this.ProjectSet.NotifyVersionChanged(oldVersion, newVersion, deletedProject); this.CollapsedCategorySet.NotifyVersionChanged(oldVersion, newVersion, deletedCollapsedCategory); this.CircuitSet.NotifyVersionChanged(oldVersion, newVersion, deletedCircuit); this.DevicePinSet.NotifyVersionChanged(oldVersion, newVersion, deletedDevicePin); this.GateSet.NotifyVersionChanged(oldVersion, newVersion, deletedGate); this.LogicalCircuitSet.NotifyVersionChanged(oldVersion, newVersion, deletedLogicalCircuit); this.PinSet.NotifyVersionChanged(oldVersion, newVersion, deletedPin); this.CircuitProbeSet.NotifyVersionChanged(oldVersion, newVersion, deletedCircuitProbe); this.ConstantSet.NotifyVersionChanged(oldVersion, newVersion, deletedConstant); this.CircuitButtonSet.NotifyVersionChanged(oldVersion, newVersion, deletedCircuitButton); this.MemorySet.NotifyVersionChanged(oldVersion, newVersion, deletedMemory); this.LedMatrixSet.NotifyVersionChanged(oldVersion, newVersion, deletedLedMatrix); this.SplitterSet.NotifyVersionChanged(oldVersion, newVersion, deletedSplitter); this.SensorSet.NotifyVersionChanged(oldVersion, newVersion, deletedSensor); this.SoundSet.NotifyVersionChanged(oldVersion, newVersion, deletedSound); this.GraphicsArraySet.NotifyVersionChanged(oldVersion, newVersion, deletedGraphicsArray); this.CircuitSymbolSet.NotifyVersionChanged(oldVersion, newVersion, deletedCircuitSymbol); this.WireSet.NotifyVersionChanged(oldVersion, newVersion, deletedWire); this.TextNoteSet.NotifyVersionChanged(oldVersion, newVersion, deletedTextNote); this.NotifyPropertyChanged("Version"); } finally { this.UpdateInProgress = false; } }
private async void LibraryInitializing_FinishToUpgradeTo_Version_3(object sender, VersionChangeEventArgs e) { await TaskManager.Enqueue(BookTagInitializingService.GetTaskSequence()); }
private async void LibraryInitializing_FinishedToUpgradeTo_Version_5(object sender, VersionChangeEventArgs e) { BookHashingService.Range = BookHashing.UpdateRange.IsAll; await TaskManager.Enqueue(BookHashingService.GetTaskSequence()); }
private async void LibraryInitializing_FinishToUpgradeTo_Version_1(object sender, VersionChangeEventArgs e) { ByteSizeCalculatingService.Range = ByteSizeCalculating.UpdateRange.IsAll; await TaskManager.Enqueue(ByteSizeCalculatingService.GetTaskSequence()); }