private async void OnCreate(object sender, EventArgs e) { var count = Convert.ToInt32(ety_count.Text); if (count < 1) { await DisplayAlert("Eingabefehler", "Bitte überprüfen Sie die Anzahl der Liegestützen!", "OK"); return; } var pushUp = new PushUp() { Count = count, RecordTaken = DateTime.Now }; await RegisterExercise(pushUp); }
void Awake() { instance = this; }