public void RaiseEvent(MissionLoadout item) { if (OnEventRaised != null) { OnEventRaised.Invoke(item); } }
public void OnAcceptButtonClick() { if (_missionStartRequest != null) { MissionLoadout loadout = new MissionLoadout { Mission = _currentMission, AssignedAgents = _agentsDisplayed.Where(ad => ad.Value.IsSelected).Select(ad => ad.Key).ToList() }; _missionStartRequest.RaiseEvent(loadout); } }
void OnMissionStartRequested(MissionLoadout loadout) { }