public App() { GmsPlace.Init("AIzaSyAPG4sE6X99SivTUHCz7FnIi2gzfh1C_U8"); GmsDirection.Init("AIzaSyCJN3Cd-Sp1a5V5OnkvTR-Gqhx7A3S-b6M"); MainPage = new Master(); }
public PlaceToPage() { InitializeComponent(); Fromplacecc._autoCompleteListView.ItemSelected += ItemSelected; GmsPlace.Init("AIzaSyB7rB6s8fc317zCPz8HS_yqwi7HjMsAqks"); _ = GetUserLocationAsync(); }
public App() { GmsPlace.Init("AIzaSyDx0rnc6jDr5VtGYgqhDQ3VvanZ1ko4S9M"); GmsDirection.Init("AIzaSyDx0rnc6jDr5VtGYgqhDQ3VvanZ1ko4S9M"); // The root page of your application var content = new ContentPage { Title = "Ezi.CustomMap", Content = new StackLayout { VerticalOptions = LayoutOptions.Center, Children = { new Label { HorizontalTextAlignment = TextAlignment.Center, Text = "Welcome to Xamarin Forms!" } } } }; MainPage = new NavigationPage(content); var mainPage = new NavigationPage(new SamplePage()); if (Device.OS == TargetPlatform.iOS) { mainPage.BarBackgroundColor = Color.FromHex("#f1f1f1"); } MainPage = mainPage; }
public App() { InitializeComponent(); ChangeHandler = new SemesterChangeHandler(); GmsPlace.Init("AIzaSyCjMY_194mgeHLsyhlPre7kZ-UVXHCCt0o"); GmsDirection.Init("AIzaSyCJN3Cd-Sp1a5V5OnkvTR-Gqhx7A3S-b6M"); MainPage = new MainPageCS(); }
public App() { InitializeComponent(); GmsPlace.Init("AIzaSyADpUdHb2a44fRcsxtIrKl5JvWzosq3Ihs"); GmsDirection.Init("AIzaSyBmEqmCV4WQG5NwY0_JRqTxB_1eFTLd-ok"); MainPage = new NavigationPage(); MainPage.Navigation.PushAsync(new StartPage()); }
public App() { InitializeComponent(); GmsPlace.Init("AIzaSyCr2z_PnUvCFuKNnt_UAGed0jaMWWhDpz0"); GmsDirection.Init("AIzaSyCr2z_PnUvCFuKNnt_UAGed0jaMWWhDpz0"); MainPage = new MasterAppointment(); }
public App() { InitializeComponent(); GmsPlace.Init("AIzaSyDIgc3KeHRMQko6Uviq-8ImCdRclzG2v0I"); GmsDirection.Init("AIzaSyDIgc3KeHRMQko6Uviq-8ImCdRclzG2v0I"); MainPage = new NavigationPage(new MainView(null)); }
public PlaceToPage() { InitializeComponent(); FlowDirection = (Settings.LastUserGravity == "Arabic") ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; AppResources.Culture = CrossMultilingual.Current.CurrentCultureInfo; Fromplacecc._autoCompleteListView.ItemSelected += ItemSelected; GmsPlace.Init("AIzaSyB7rB6s8fc317zCPz8HS_yqwi7HjMsAqks"); _ = GetUserLocationAsync(); }
public App(GeoJSONData dat, List <VenueLocation> venues) { InitializeComponent(); ChangeHandler = new SemesterChangeHandler(); GmsPlace.Init("AIzaSyCjMY_194mgeHLsyhlPre7kZ-UVXHCCt0o"); GmsDirection.Init("AIzaSyCJN3Cd-Sp1a5V5OnkvTR-Gqhx7A3S-b6M"); var temp = new GEOJSONTOJSONParser(dat, venues);//the Dat file sent by each platform to the parent App temp.Process(); MainPage = new MainPageCS(); }
//Page MenuPage = new MenuPage(); public App() { InitializeComponent(); GmsPlace.Init("AIzaSyDAmhu79jCKlkE6KIVSqgxlIl83gJj_rkk"); GmsDirection.Init("AIzaSyDAmhu79jCKlkE6KIVSqgxlIl83gJj_rkk"); Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MjQzMkAzMTM2MmUzMjJlMzBiRXp6WjNDdFdzZTRjcmc4YWxJdXU2eVZ2OHhWOWJ0dHhQakVvZ0YvZmNZPQ=="); //MainPage = new NavigationPage( new LoginPage()); NavigationService navigationService = new NavigationService(); navigationService.SetMainPage(); }
public App() { GmsPlace.Init("YOUR API KEY"); GmsDirection.Init("AIzaSyCJN3Cd-Sp1a5V5OnkvTR-Gqhx7A3S-b6M"); // The root page of your application var mainPage = new NavigationPage(new SamplePage()); if (Device.OS == TargetPlatform.iOS) { mainPage.BarBackgroundColor = Color.FromHex("#f1f1f1"); } MainPage = mainPage; }
public App() { InitializeComponent(); GmsPlace.Init("AIzaSyDAmhu79jCKlkE6KIVSqgxlIl83gJj_rkk"); GmsDirection.Init("AIzaSyDAmhu79jCKlkE6KIVSqgxlIl83gJj_rkk"); NavigationService navigationService = new NavigationService(); navigationService.SetMainPage(); //MainPage = new MainPage(); }
public App() { GmsPlace.Init("AIzaSyCwxK-1FnusRJOx1ZpcTS5dpIoJZH9h0Eg"); GmsDirection.Init("AIzaSyCwxK-1FnusRJOx1ZpcTS5dpIoJZH9h0Eg"); // The root page of your application var mainPage = new NavigationPage(new SamplePage()); if (Device.OS == TargetPlatform.iOS) { mainPage.BarBackgroundColor = Color.FromHex("#f1f1f1"); } MainPage = mainPage; }
public App() { try { GmsPlace.Init(ApplicationSettings.MapsApiKey); GmsDirection.Init(ApplicationSettings.MapsApiKey); Current.Resources = new ResourceDictionary(); ApplicationSettings.Notificator = DependencyService.Get <IToastNotificator>(); ApplicationSettings.Service.ErrorEvent += Service_ErrorEvent; ApplicationSettings.MainApp = this; ApplicationSettings.DataBase = new MapBulDataBaseRepository("MapBulDb.db"); Plugin.Connectivity.CrossConnectivity.Current.ConnectivityChanged += Current_ConnectivityChanged; DateTime lastLogin; ApplicationSettings.LoadCategories(); lastLogin = ApplicationSettings.DataBase.Users.Any() ? ApplicationSettings.DataBase.Users.Max(item => item.LastLogin) : DateTime.MinValue; var currentUser = ApplicationSettings.DataBase.Users.FirstOrDefault(item => item.LastLogin == lastLogin); if (currentUser != null) { currentUser.LastLogin = DateTime.UtcNow; ApplicationSettings.DataBase.SaveUser(currentUser); } ApplicationSettings.SetCurrentSession(); ApplicationSettings.CurrentUser.SetUser(currentUser); NavigationPage.SetHasNavigationBar(this, false);//скрыть ActionBar MainPage = new MyMasterDetailPage(); if (ApplicationSettings.CurrentUser.IsLogined || ApplicationSettings.CurrentUser.UserType == UserTypesMobile.Guest) { ApplicationSettings.LoadFavorites(); ApplicationSettings.MainPage.Navigation.PushAsync(new TKMapView()); } else { ApplicationSettings.MainPage.Navigation.PushAsync(new LoginView()); } } catch (Exception e) { throw; } }
public void SetMapKey(string key) { GmsPlace.Init(key); GmsDirection.Init(key); }