/// <summary> /// Get the current waypoint and raise event to notify the session /// </summary> public void HandleCurrentWaypoint(object sender, EventArgs args) { if (_isFirstTimeGetWaypoint) { StartSession(args); _isFirstTimeGetWaypoint = false; } WaypointEvent.OnEventCall(args); }
public NavigationModule(string navigraphName, Guid destinationID) { _isFirstTimeGetWaypoint = true; WaypointEvent = new WaypointEvent(); NavigationEvent = new NavigationEvent(); _IPSmodule = new IPSModule(); _currentWaypointHandler = new EventHandler(HandleCurrentWaypoint); //IPSModule.Event.WaypointHandler += CurrentWaypointHandler; _navigraphName = navigraphName; _destinationID = destinationID; }