Example #1
0
 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);
     }
 }
Example #2
0
 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;
 }
Example #3
0
 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;
 }
Example #4
0
 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;
 }
Example #5
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     Fr.Navigated += Fr_Navigated;
     Fr.Navigate(typeof(LoginView));
 }
Example #6
0
 private void Grid_PointerPressed(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
 {
     Fr.Navigate(typeof(ProfileView));
 }
Example #7
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     Fr.Navigate(typeof(HomeView));
     base.OnNavigatedTo(e);
 }
Example #8
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     Fr.Navigate(typeof(View.OfflineMapDownloader.MapDownloaderView));
 }
Example #9
0
 private void MainPage_Loaded(object sender, RoutedEventArgs e)
 {
     Fr.Navigate(typeof(View.MapView));
 }