/// <summary> /// Occurs when the EpflMap has been loaded. /// </summary> private void LayoutRoot_Loaded(object sender, RoutedEventArgs e) { string text = AssemblyReader.GetText(typeof(EpflMap).GetTypeInfo().Assembly, "PocketCampus.Map.MapTokens.txt"); if (text == string.Empty) { #if DEBUG MessageBox.Show("The file with the map tokens is missing. " + "Please add a file called MapTokens.txt in PocketCampus.Map.WindowsPhone with BuildAction 'Embedded Resource'. " + "The first line contains the application ID, the second like the authentication token."); #endif } else { string[] tokens = text.Split(); MapsSettings.ApplicationContext.ApplicationId = tokens[0]; MapsSettings.ApplicationContext.AuthenticationToken = tokens[1]; } }