public override void HandleMouseButtonPressedEvent(object sender, MouseButtonEventArgs e) { // if the equipment being updated is an employee and that equipment is being clicked on by the user, fire the event telling subscribers of such // we can use this event to react to the user interacting with the employees to do things like display their inspection information foreach (var employee in simulationManager.TrackedEmployees) { if (IsAgentClicked(employee, e)) { if (userInterfaceManager.CurrentState == UserInterfaceState.Default) { userInterfaceManager.SetEmployeeBeingInspected(employee); } } } foreach (var equipment in simulationManager.TrackedEquipment) { if (IsAgentClicked(equipment, e)) { if (userInterfaceManager.CurrentState == UserInterfaceState.Default) { userInterfaceManager.SetEquipmentBeingInspected(equipment); } } } userInterfaceManager.HandleMouseButtonPressedEvent(sender, e); }