protected override async void OnAppearing() { Business bus = new Business(); Ride2EarnDatabase db = new Ride2EarnDatabase(); base.OnAppearing(); await splashImage.ScaleTo(1, 200); await splashImage.ScaleTo(0.9, 1500, Easing.Linear); await splashImage.ScaleTo(1500, 1, Easing.Linear); if (IsFirstTime == "yes") { Application.Current.MainPage = new NavigationPage(new LoginPage1());; IsFirstTime = "no"; } else { if (bus.CheckIfExists() != string.Empty) { Application.Current.MainPage = new NavigationPage(new MasterDetail()); } else { Application.Current.MainPage = new NavigationPage(new LoginPage1());; IsFirstTime = "no"; } } }
public Pagina1() { InitializeComponent(); bus = new Business(); lstGebruiker.IsEnabled = false; dataAccess = new Ride2EarnDatabase(); }
public Home() { InitializeComponent(); bus = new Business(); dataAccess = new Ride2EarnDatabase(); BindingContext = new Rit(); StartPicker.ItemsSource = bus.GetStartAdressen(); EindePicker.ItemsSource = bus.GetEindAdressen(); EntryGereden.Text = string.Empty; EntryDatum.Text = string.Empty; EntryStart.Text = string.Empty; EntryEinde.Text = string.Empty; if ((EntryStart.IsVisible == false) && (EntryEinde.IsVisible == false)) { EntryDatum.Completed += (s, e) => EntryGereden.Focus(); EntryGereden.Completed += (s, e) => AddEvent(s, e); } else if (EntryStart.IsVisible == false) { EntryDatum.Completed += (s, e) => EntryEinde.Focus(); EntryEinde.Completed += (s, e) => EntryGereden.Focus(); EntryGereden.Completed += (s, e) => AddEvent(s, e); } else if (EntryEinde.IsVisible == false) { EntryDatum.Completed += (s, e) => EntryStart.Focus(); EntryStart.Completed += (s, e) => EntryGereden.Focus(); EntryGereden.Completed += (s, e) => AddEvent(s, e); } }
public Business(int id) { _db = new Ride2EarnDatabase(); _Start = _db.GetStart(id); _Einde = _db.GetEinde(id); _Datum = _db.GetDatum(id); _Gereden = _db.GetGereden(id); }
public LoginPage2(Gebruiker b) { InitializeComponent(); dataAccess = new Ride2EarnDatabase(); BindingContext = b; Init(); NavigationPage.SetHasNavigationBar(this, false); }
public Business() { _db = new Ride2EarnDatabase(); _Wachtwoord = _db.GetWW(); _Km = _db.GetAantalKM(); _GetStartAdressen = _db.GetStartAdressen(); _GetEindeAdressen = _db.GetEindAdressen(); _checken = _db.Checken(); }
public GegevensAanpassen() { dataAccess = new Ride2EarnDatabase(); InitializeComponent(); }
public Vergoedingen() { InitializeComponent(); bus = new Business(); dataAccess = new Ride2EarnDatabase(); }