Example #1
0
        public void Handle(BuildingBlockRemovedEvent removedEvent)
        {
            if (removedEvent.DueToSwap)
            {
                return;
            }

            var simulation = removedEvent.BuildingBlock as IndividualSimulation;

            if (!canHandle(simulation))
            {
                return;
            }

            removeSimulation(simulation);
        }
Example #2
0
 public void Handle(BuildingBlockRemovedEvent eventToHandle)
 {
     _menuBarItemRepository[MenuBarItemIds.ImportObservedData].Enabled = compoundsAvailableIn(eventToHandle.Project);
 }
Example #3
0
        public void Handle(BuildingBlockRemovedEvent eventToHandle)
        {
            var projectHasCompound = compoundsAvailableIn(eventToHandle.Project);

            _menuBarItemRepository[MenuBarItemIds.AddObservedData].Enabled = projectHasCompound;
        }
Example #4
0
 public void Handle(BuildingBlockRemovedEvent eventToHandle)
 {
     RemoveNodeFor(eventToHandle.BuildingBlock);
 }
Example #5
0
 public void Handle(BuildingBlockRemovedEvent buildingBlockRemovedEvent)
 {
     Close(buildingBlockRemovedEvent.BuildingBlock);
 }