public static void DeleteAllInformationXML() { foreach (string place in GetAllNavigationGraphs()) { string map = PhoneInformation.GetCurrentMapName(place); DeleteInformationML(map); } }
/// <summary> /// If it is the first time to get waypoint then get the value of /// route options and start the corresponding session. /// </summary> private void ConstructSession() { List <ConnectionType> avoidList = new List <ConnectionType>(); Console.WriteLine("-- setup preference --- "); if (Application.Current.Properties.ContainsKey("AvoidStair")) { avoidList.Add( (bool)Application.Current.Properties["AvoidStair"] ? ConnectionType.Stair : ConnectionType.NormalHallway); avoidList.Add( (bool)Application.Current.Properties["AvoidElevator"] ? ConnectionType.Elevator : ConnectionType.NormalHallway); avoidList.Add( (bool)Application.Current.Properties["AvoidEscalator"] ? ConnectionType.Escalator : ConnectionType.NormalHallway); avoidList = avoidList.Distinct().ToList(); avoidList.Remove(ConnectionType.NormalHallway); } Console.WriteLine("-- end of setup preference --- "); // Start the session _session = new Session( NavigraphStorage.LoadNavigationGraphXML( PhoneInformation. GetCurrentMapName(_navigationGraphName) ), _destinationRegionID, _destinationWaypointID, avoidList.ToArray()); _navigationResultEventHandler = new EventHandler(HandleNavigationResult); _session._event._eventHandler += _navigationResultEventHandler; }