コード例 #1
0
ファイル: App.xaml.cs プロジェクト: neblidex/neblidex-android
 public void LoadPage(int page_num)
 {
     if (page_num == 0)
     {
         //Splash Screen
         MainPage = new SplashPage();
     }
     else if (page_num == 1)
     {
         //Market Page
         MainPage = new MarketPage();
     }
     else if (page_num == 2)
     {
         //Orders Page
         MainPage = new OrdersPage();
     }
     else if (page_num == 3)
     {
         //Wallet Page
         MainPage = new WalletPage();
     }
     else if (page_num == 4)
     {
         //Settings Page
         MainPage = new SettingsPage();
     }
     Task.Run(() =>
     {
         GC.Collect(); //Run garbage collection
     });
 }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: neblidex/neblidex-android
 public static void UpdateSplashPageStatus(string msg)
 {
     // This will update the text on the splashpage if present
     if (MainService.NebliDex_UI == null)
     {
         return;
     }
     if (MainService.NebliDex_UI.MainPage is SplashPage)
     {
         SplashPage page = (SplashPage)MainService.NebliDex_UI.MainPage;
         page.ChangeText(msg);
     }
 }