Esempio n. 1
0
        /// <summary>
        /// Lädt die Daten vom Server, wenn die Seite angezeigt wird.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void ContentPage_Appearing(object sender, EventArgs e)
        {
            KundeViewModel vm = BindingContext as KundeViewModel;
            await vm.LoadKundenData();

            await vm.LoadTrainingslevel();

            //A little ugly solution -> but to set the datepickers date to an string in Kundendata,
            //we must parse it first to date
            Gebdate.Date = DateTime.Parse(vm.KundenData.GebDatum);
        }
Esempio n. 2
0
 /// <summary>
 /// Lädt die Daten vom Server, wenn die Seite angezeigt wird.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private async void ContentPage_Appearing(object sender, EventArgs e)
 {
     KundeViewModel vm = BindingContext as KundeViewModel;
     await vm.LoadTrainingslevel();
 }