public void Handle(BuildingBlockRemovedEvent removedEvent) { if (removedEvent.DueToSwap) { return; } var simulation = removedEvent.BuildingBlock as IndividualSimulation; if (!canHandle(simulation)) { return; } removeSimulation(simulation); }
public void Handle(BuildingBlockRemovedEvent eventToHandle) { _menuBarItemRepository[MenuBarItemIds.ImportObservedData].Enabled = compoundsAvailableIn(eventToHandle.Project); }
public void Handle(BuildingBlockRemovedEvent eventToHandle) { var projectHasCompound = compoundsAvailableIn(eventToHandle.Project); _menuBarItemRepository[MenuBarItemIds.AddObservedData].Enabled = projectHasCompound; }
public void Handle(BuildingBlockRemovedEvent eventToHandle) { RemoveNodeFor(eventToHandle.BuildingBlock); }
public void Handle(BuildingBlockRemovedEvent buildingBlockRemovedEvent) { Close(buildingBlockRemovedEvent.BuildingBlock); }