Exemple #1
0
        void al_EmailVarMıCompleted(object sender, EmailVarMıCompletedEventArgs e)
        {
            if (e.Result == false)
            {
                if (parola1 == parola2)
                {
                    if (pwParola.Password.Length > minPasswordChar)
                    {
                        Kullanicilar kullanici = new Kullanicilar {
                            Email = txtEmail.Text, Ad = AdDuzenle.TextLowerAndFirstUpper(txtAdSoyad.Text), Parola = pwParola.Password, Tarih = DateTime.Now, Onay = false, Sayi = sayi.ToString(), MahalleId = lpkMahalle.SelectedIndex + 1, KullaniciResim = null
                        };
                        al.KullaniciKayitAsync(kullanici);
                        al.KullaniciKayitCompleted += new EventHandler <KullaniciKayitCompletedEventArgs>(al_KullaniciKayitCompleted);
                    }
                    else
                    {
                        textBlockError.Text       = "Parola " + minPasswordChar + " karakterden fazla olmalı !";
                        pwParola.BorderBrush      = red;
                        textBlockError.Visibility = Visibility.Visible;
                        pwParola.Password         = string.Empty;
                        pwParolaTekrar.Password   = string.Empty;
                    }
                }

                else
                {
                    textBlockError.Text       = "Parolalar Uyuşmamaktdır !";
                    txtEmail.BorderBrush      = red;
                    textBlockError.Visibility = Visibility.Visible;
                    pwParola.Password         = string.Empty;
                    pwParolaTekrar.Password   = string.Empty;
                }
            }

            else
            {
                textBlockError.Text       = "Bu Email Adresi Kullanılmaktadır !";
                txtEmail.BorderBrush      = red;
                textBlockError.Visibility = Visibility.Visible;
                pwParola.Password         = string.Empty;
                pwParolaTekrar.Password   = string.Empty;
                txtEmail.Text             = string.Empty;
            }
        }
        void al_EmailVarMıCompleted(object sender, EmailVarMıCompletedEventArgs e)
        {
            if (e.Result == false)
            {
                if (parola1 == parola2)
                {
                    if (pwParola.Password.Length > minPasswordChar)
                    {
                        Kullanicilar kullanici = new Kullanicilar { Email = txtEmail.Text, Ad = AdDuzenle.TextLowerAndFirstUpper(txtAdSoyad.Text), Parola = pwParola.Password, Tarih = DateTime.Now, Onay = false, Sayi = sayi.ToString(), MahalleId = lpkMahalle.SelectedIndex + 1, KullaniciResim = null };
                        al.KullaniciKayitAsync(kullanici);
                        al.KullaniciKayitCompleted += new EventHandler<KullaniciKayitCompletedEventArgs>(al_KullaniciKayitCompleted);

                    }
                    else
                    {
                        textBlockError.Text = "Parola " + minPasswordChar + " karakterden fazla olmalı !";
                        pwParola.BorderBrush = red;
                        textBlockError.Visibility = Visibility.Visible;
                        pwParola.Password = string.Empty;
                        pwParolaTekrar.Password = string.Empty;
                    }
                }

                else
                {
                    textBlockError.Text = "Parolalar Uyuşmamaktdır !";
                    txtEmail.BorderBrush = red;
                    textBlockError.Visibility = Visibility.Visible;
                    pwParola.Password = string.Empty;
                    pwParolaTekrar.Password = string.Empty;
                }
            }

            else
            {
                textBlockError.Text = "Bu Email Adresi Kullanılmaktadır !";
                txtEmail.BorderBrush = red;
                textBlockError.Visibility = Visibility.Visible;
                pwParola.Password = string.Empty;
                pwParolaTekrar.Password = string.Empty;
                txtEmail.Text = string.Empty;
            }
        }