public InitPage() { InitializeComponent(); UIInstance.nav = Navigation; FireDatabase.initDatabase(); Instances.Init(); var assembly = typeof(FireCore).GetTypeInfo().Assembly; Stream stream = assembly.GetManifestResourceStream("DroverXamarin.iOS.animation.html"); string text = ""; using (var reader = new System.IO.StreamReader(stream)) { text += reader.ReadToEnd(); } //HtmlWebViewSource source = new HtmlWebViewSource(); //source.Html = text; //splash_screen.Source = source; //DependencyService.Get<IListenForRideProposal>().Listen(); //FireAuth.LoginWithEmailAndPassword("*****@*****.**", "Password_10"); FireAuth.LoginWithEmailAndPassword("*****@*****.**", "Bwooorkm1"); //FireAuth.LoginWithEmailAndPassword("*****@*****.**", "Password_10"); //var test = assembly.GetManifestResourceStream("DroverXamarin.iOS.animation.html"); //Console.WriteLine("Stream: "+test+" isNull? "+(test==null).ToString()+" assembly: "+assembly); //foreach (var res in assembly.GetManifestResourceNames()) // Console.WriteLine("found resource: " + res); }
public SignInPage() { InitializeComponent(); var tapGestureRecognizer = new TapGestureRecognizer(); tapGestureRecognizer.Tapped += (s, e) => { FireAuth.LoginWithEmailAndPassword(email_field.Text, password_field.Text); //Navigation.PushModalAsync(new MainPage()); }; sign_in_button.GestureRecognizers.Add(tapGestureRecognizer); var backButtonGesture = new TapGestureRecognizer(); backButtonGesture.Tapped += (s, e) => { Navigation.PopModalAsync(); }; back_arrow_button.GestureRecognizers.Add(backButtonGesture); }
public SignInPage() { InitializeComponent(); // Creates a sign in button for when the user is done entering his or her information var tapGestureRecognizer = new TapGestureRecognizer(); tapGestureRecognizer.Tapped += (s, e) => { FireAuth.LoginWithEmailAndPassword(email_field.Text, password_field.Text); //Navigation.PushModalAsync(new MainPage()); }; sign_in_button.GestureRecognizers.Add(tapGestureRecognizer); // Adds a back button var backButtonGesture = new TapGestureRecognizer(); backButtonGesture.Tapped += (s, e) => { Navigation.PopModalAsync(); }; back_arrow_button.GestureRecognizers.Add(backButtonGesture); }