Esempio n. 1
0
        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));
                }
            }
        }
Esempio n. 2
0
        private async void ayarCek(int kulId)
        {
            LocalSetting ls = await b.GetSetting(kulId);

            kisaMolaSuresi.Text = ls.kisaMola.ToString();
            uzunMolaSuresi.Text = ls.uzunMola.ToString();
            gorevSuresi.Text    = ls.gorevSure.ToString();
        }