protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); IconBarHome.Glyph = "\ueA8A"; Fr.Navigated += Fr_Navigated; if (AppCore.InstaApi == null) { Fr.Navigate(typeof(LoginView)); } else { Fr.Navigate(typeof(MainView), true); } }
private void MainPage_Loaded(object sender, RoutedEventArgs e) { Fr.Navigate(typeof(MapView)); applyAcrylicAccent(MainGrid); HMenuTopLst.Items.Add(new MenuClass { Text = "Map View", Icon = "", Tag = "Map View" }); HMenuTopLst.Items.Add(new MenuClass { Text = "Offline Maps", Icon = "", Tag = "Offline Maps" }); HMenuBottomLst.Items.Add(new MenuClass { Text = "Send feedback", Icon = "", Tag = "Send feedback" }); HMenuBottomLst.Items.Add(new MenuClass { Text = "Settings", Icon = "", Tag = "Settings" }); return; }
private async void MainPage_Loaded(object sender, RoutedEventArgs e) { Fr.Navigate(typeof(MapView), para); applyAcrylicAccent(MainGrid); HMenuTopLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringMapView", "Text"), Icon = "", Tag = "Map View" }); HMenuTopLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringOfflineMaps", "Text"), Icon = "", Tag = "Offline Maps" }); try { if (CurrentAppSimulator.LicenseInformation.IsTrial) { var exp = CurrentAppSimulator.LicenseInformation.ExpirationDate; if (exp.Subtract(DateTime.Now) <= new TimeSpan(4, 0, 0, 0)) { await new MessageDialog("Application will be expired on " + exp.ToString()).ShowAsync(); } } // HMenuBottomLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringBuyFromIran", "Text"), Icon = "", Tag = "Buy from Iran" }); } catch { //HMenuBottomLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringBuyFromIran", "Text"), Icon = "", Tag = "Buy from Iran" }); } HMenuBottomLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringSendFeedback", "Text"), Icon = "", Tag = "Send feedback" }); HMenuBottomLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringSettings", "Text"), Icon = "", Tag = "Settings" }); if (ClassInfo.DeviceType() == ClassInfo.DeviceTypeEnum.Phone) { DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait; } return; }
private void MainPage_Loaded(object sender, RoutedEventArgs e) { Fr.Navigate(typeof(MapView), para); applyAcrylicAccent(MainGrid); HMenuTopLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringMapView", "Text"), Icon = "", Tag = "Map View" }); HMenuTopLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringOfflineMaps", "Text"), Icon = "", Tag = "Offline Maps" }); try { if (CurrentAppSimulator.LicenseInformation.IsTrial) { HMenuBottomLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringBuyFromIran", "Text"), Icon = "", Tag = "Buy from Iran" }); } } catch { HMenuBottomLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringBuyFromIran", "Text"), Icon = "", Tag = "Buy from Iran" }); } HMenuBottomLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringSendFeedback", "Text"), Icon = "", Tag = "Send feedback" }); HMenuBottomLst.Items.Add(new MenuClass { Text = MultilingualHelpToolkit.GetString("StringSettings", "Text"), Icon = "", Tag = "Settings" }); if (ClassInfo.DeviceType() == ClassInfo.DeviceTypeEnum.Phone) { DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait; } return; }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); Fr.Navigated += Fr_Navigated; Fr.Navigate(typeof(LoginView)); }
private void Grid_PointerPressed(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e) { Fr.Navigate(typeof(ProfileView)); }
protected override void OnNavigatedTo(NavigationEventArgs e) { Fr.Navigate(typeof(HomeView)); base.OnNavigatedTo(e); }
private void Button_Click(object sender, RoutedEventArgs e) { Fr.Navigate(typeof(View.OfflineMapDownloader.MapDownloaderView)); }
private void MainPage_Loaded(object sender, RoutedEventArgs e) { Fr.Navigate(typeof(View.MapView)); }