private async void SureBitir() { k = false; var id = Application.Current.Properties["id"]; if (gorevId == 0) { await b.TaskState(Convert.ToInt32(id), gorevId, 4, 0); await Navigation.PushModalAsync(new Gorevler(projeId)); } else { LocalTask lt = await b.TaskState(Convert.ToInt32(id), gorevId, 2, 0); await DisplayAlert("Süre Doldu", "Geri sayım süresi bitti!", "Ok"); LocalSetting ls = await b.GetSetting(Convert.ToInt32(id)); if (ls.kacinciSure % 4 == 0) { await Navigation.PushModalAsync(new MainPage("MOLA", 0, 0, (int)ls.uzunMola)); } else { await Navigation.PushModalAsync(new MainPage("MOLA", 0, 0, (int)ls.kisaMola)); } } }
private async void listGorevler_ItemTapped(object sender, ItemTappedEventArgs e) { int i = 0; foreach (string s in isimler) { if (isimler[i] == e.Item.ToString()) { break; } i++; } if (durum[i] == 2) { var id = Application.Current.Properties["id"]; await b.TaskState(Convert.ToInt32(id), idler[i], 3, 0); await Navigation.PushModalAsync(new MainPage(e.Item.ToString(), idler[i], projeId, saniye[i])); } else if (durum[i] == 1) { await DisplayAlert("Bilgi", "Bu görevi zaten tamamladınız", "kapat"); } else { await Navigation.PushModalAsync(new MainPage(e.Item.ToString(), idler[i], projeId, saniye[i])); } }