예제 #1
0
 public MenuPage()
 {
     BindingContext = new MenuPageViewModel();
     Title          = "Menu";
     Icon           = Device.OS == TargetPlatform.iOS ? "menu.png" : null;
     InitializeComponent();
 }
예제 #2
0
 public HomePage()
 {
     BindingContext = new MenuPageViewModel();
     Title          = "Menu";
     InitializeComponent();
     HeadTitle.Text = "Welcome to Fabikram Foods " + LoginPage.userName;
     System.Diagnostics.Debug.WriteLine(LoginPage.userName);
     App.RootPage.Master = new MenuPage();
     if (stats == null)
     {
         getLoc();
     }
     else
     {
         Location.Text = "You are " + stats.rows[0].elements[0].distance.text + " away from our Restaurant!, it is approximately " + stats.rows[0].elements[0].duration.text + " away";
     }
 }