async Task Guncelle()
        {
            try
            {
                progressBar.IsActive = true;
                var guncellemesonucu = await App.APIService.ProfilGuncelle(adsoyad.Text, email.Text, txtpassword.Password);

                if (guncellemesonucu.Sonuc == true)
                {
                    await Mesaj.MesajGoster(guncellemesonucu.Mesaj);

                    await GirisPage.CikisYap();
                }
                else
                {
                    await Mesaj.MesajGoster(guncellemesonucu.Mesaj);
                }
            }
            catch (Exception ex)
            {
                await App.APIService.Log("Profil Güncelleme Hatası. Detaylar: " + ex.Message);
            }
            finally
            {
                progressBar.IsActive = false;
            }
        }
Ejemplo n.º 2
0
        private async void Cikis_Tapped(object sender, TappedRoutedEventArgs e)
        {
            var msj = new MessageDialog("Çıkış yapmak istiyor musunuz?", "O mu Bu mu");

            msj.Commands.Add(new UICommand("Uygulamadan Çık", (sndr) =>
            {
                App.Current.Exit();
            }));
            msj.Commands.Add(new UICommand("Hesabımdan Çık", async(sndr) =>
            {
                await GirisPage.CikisYap();
            }));
            msj.CancelCommandIndex  = 1;
            msj.DefaultCommandIndex = 1;
            await msj.ShowAsync();
        }