public CreateUserPage() { InitializeComponent(); App.Register(this); e_name.HeightRequest = App.ScreenHeight / 13; e_pass.HeightRequest = App.ScreenHeight / 13; fr.Margin = new Thickness(App.ScreenWidth / 24, App.ScreenHeight / 52, App.ScreenWidth / 24, 0); fr1.Margin = new Thickness(App.ScreenWidth / 24, 0, App.ScreenWidth / 24, 0); crt_acc.Margin = fr.Margin; e_name.FontSize = IFont.Calc(e_name.HeightRequest); e_pass.FontSize = IFont.Calc(e_pass.HeightRequest); }
public WelcomePage(string state) { this.state = state; InitializeComponent(); if (state == "LoginOnly") { for (int x = 0; x < Children.Count + 2; x++) { Children.RemoveAt(0); } } else { icon.Source = App.GetSource("logo.png"); btn.Clicked += (e, args) => OnButtonClicked(); btn1.Clicked += (e, args) => OnButtonClicked2(); btn2.Clicked += (e, args) => OnButtonClicked3(); icon1.Source = App.GetSource("logo.png"); icon2.Source = App.GetSource("map.png"); icon3.Source = App.GetSource("logo_word.png"); } if (state == "Guide") { Children.RemoveAt(Children.Count - 1); lstbtn.IsVisible = false; last_skip.Text = "Stäng"; } log_btn.Clicked += (e, args) => ProcessLogin(); crt_btn.Clicked += (e, args) => CreateAccoutClicked(); lstbtn.Clicked += (e, args) => CreateAccoutClicked(); btn.Margin = new Thickness(15, 0, 15, App.ScreenHeight / 24); e_name.HeightRequest = App.ScreenHeight / 12; e_pass.HeightRequest = App.ScreenHeight / 12; fr1.Margin = new Thickness(App.ScreenWidth / 24, 15, App.ScreenWidth / 24, 0); fr.Margin = new Thickness(App.ScreenWidth / 24, App.ScreenHeight / 64, App.ScreenWidth / 24, 0); e_name.FontSize = IFont.Calc(e_name.HeightRequest); e_pass.FontSize = IFont.Calc(e_pass.HeightRequest); vnr.Text = "Version: " + App.VERSION; laboli.Text = "På kartan kan du se vilka restauranger och cafeer som är anslutna till Retrieve it"; }