public MainPage() { InitializeComponent(); var player = Plugin.SimpleAudioPlayer.CrossSimpleAudioPlayer.Current; Logo.GestureRecognizers.Add(new TapGestureRecognizer(OnTap)); ParametreLogo.GestureRecognizers.Add(new TapGestureRecognizer(ParamLang)); player.Load("Music1.mp3"); player.Play(); this.dataAccess = new ProfilsDataAccess(); LeProfil = this.dataAccess.GetProfil(); if (LeProfil == null) { LabelMainPage.Text = "Avec Chill'N'Explore, découvrez ou re-découvrez la ville ou vous êtes !"; } else { if (LeProfil.Lang == "French") { LabelMainPage.Text = "Avec Chill'N'Explore, découvrez ou re-découvrez la ville ou vous êtes !"; } else { LabelMainPage.Text = "With Chill'N'Explore, discover the town where you are!"; } } }
public MainMap() { InitializeComponent(); this.dataAccess = new ProfilsDataAccess(); /// Récupérer la ville entrée dans la textbox //var laVille = App.nameCity; ///// calculer ses coordonnee grâce à une query sur l'api (appel de la methode //string stringLatitude = "http://35.190.168.129:8080/api/ChillNExplore/" + laVille + "/GetLatForCity"; //string stringLongitude = "http://35.190.168.129:8080/api/ChillNExplore/" + laVille + "/GetLngForCity"; //double latitude = double.Parse(stringLatitude); //double longitude = double.Parse(stringLongitude); //List<Pin> pins = new List<Pin>(); // this.dataAccess = new ProfilsDataAccess(); LeProfil = this.dataAccess.GetProfil(); PseudoLabel.Text = LeProfil.Pseudo; ParametreLogo.GestureRecognizers.Add(new TapGestureRecognizer(ParamLang)); var map = new Map(MapSpan.FromCenterAndRadius(new Position(47.3212274, 5.027678899999955), Distance.FromMiles(0.3))) { //IsShowingUser = true, HeightRequest = 100, WidthRequest = 960, VerticalOptions = LayoutOptions.FillAndExpand }; // AJout de la map stlMap.Children.Add(map); //"http://35.190.168.129:8080/api/ChillNExplore/" + laVille + "/GetInterestWithLocation"; var pin = new Pin() { Position = new Position(47.3212274, 5.027678899999955), Label = "Jardin de l'Arquebuse" }; map.Pins.Add(pin); pin.Clicked += (sender, e) => { Navigation.PushAsync(new PinPage()); }; }
public LangSetting() { InitializeComponent(); this.dataAccess = new ProfilsDataAccess(); LeProfil = this.dataAccess.GetProfil(); }
public AddAcc2() { InitializeComponent(); this.dataAccess = new ProfilsDataAccess(); }