Ejemplo n.º 1
0
        private void btnEkle_Click_1(object sender, EventArgs e)
        {
            DialogResult cikis = new DialogResult();

            cikis = MessageBox.Show("Konut İlanı Eklemek istediğinize emin misiniz ?", "", MessageBoxButtons.YesNo);
            if (cikis == DialogResult.Yes)
            {
                string k_Adi = KullaniciGiris.kullaniciadi;

                SqlBolum ekle    = new SqlBolum();
                bool     kontrol = false;
                kontrol = ekle.IlanKayitEkle(k_Adi, cmbIlanTuru.Text, cmbIlSec.Text, cmbIlce.Text, txtAdres.Text, txtKatNo.Text, txtAlan.Text, txtOdaSayisi.Text, txtBinaYili.Text, txtFiyati.Text, resimyolu);
                if (kontrol == true)
                {
                    MessageBox.Show("eklendi");
                    Dispose();
                }
                else
                {
                    MessageBox.Show("hata");
                }
            }
            else
            {
                Dispose();
            }
        }
        private void btnKaydet_Click(object sender, EventArgs e)
        {
            string k_Adi = KullaniciGiris.kullaniciadi;

            DialogResult cikis = new DialogResult();

            cikis = MessageBox.Show("Arazi İlanı Eklemek istediğinize emin misiniz ?", "", MessageBoxButtons.YesNo);
            if (cikis == DialogResult.Yes)
            {
                SqlBolum ekle    = new SqlBolum();
                bool     kontrol = false;
                kontrol = ekle.IlanAraziKayitEkle(k_Adi, cmbImar.Text, cmbIl.Text, cmbIlce.Text, txtAlan.Text, txtAda.Text, txtParsel.Text, cmbTapu.Text, txtFiyat.Text, resimyolu);
                if (kontrol == true)
                {
                    MessageBox.Show("eklendi");
                    Dispose();
                }
                else
                {
                    MessageBox.Show("hata");
                }
            }
            else
            {
                Dispose();
            }
        }
Ejemplo n.º 3
0
        public void btnKaydet_Click(object sender, EventArgs e)//public yaptım hata verebilir
        {
            bool MailKontrol = EmailKontrol(txtMail.Text);

            if (MailKontrol == true)
            {
                SqlBolum bolum    = new SqlBolum();
                bool     kontroll = bolum.KayitKontrol(txtKullanici.Text, txtSifre.Text);

                if (kontroll == true)
                {
                    MessageBox.Show("hoop hemşerim!");
                }

                else
                {
                    int kod = DogrulamaKodu();
                    gonderilecekKod      = kod;
                    KullaniciAdiGonder   = txtKullanici.Text;
                    KullaniciSifreGonder = txtSifre.Text;
                    KullaniciMailGonder  = txtMail.Text;
                    MailGonder dogrulama = new MailGonder();
                    dogrulama.DogrulamaGonder(txtMail.Text, kod);
                    MailDogrulama dogrula = new MailDogrulama();
                    dogrula.Show();
                    MessageBox.Show("Dikkat ! Doğrulama kodunuz Gereksiz bölümüne gitmiş olabilir.");
                }
            }
            else
            {
                MessageBox.Show("MAİL ADRESİNİZ HATALI ! LÜTFEN KONTROL EDİNİZ.");
            }
        }
Ejemplo n.º 4
0
        private void btnGiris_Click(object sender, EventArgs e) //BU KOD SATIRLARINDA GİRİLEN GİRİŞ BİLGİLERİ DOĞRULTUSUNDA SİSTEME GİRİŞ YAPMA VEYA YAPAMAMA İŞLEMİNİ GERÇEKLEŞTİRDİK.
        {
            SqlBolum nesne        = new SqlBolum();
            string   id           = txtKullanici.Text;
            string   sifre        = txtSifre.Text;
            bool     kullanici_mi = false;

            kullanici_mi = nesne.KayitKontrol(id, sifre);

            if (kullanici_mi == true)
            {
                sifre        = txtSifre.Text;
                kullaniciadi = txtKullanici.Text;
                MessageBox.Show("GİRİŞ BAŞARILI");
                KullaniciAnasayfa AnasayfaGit = new KullaniciAnasayfa();
                AnasayfaGit.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("GİRİŞ BAŞARISIZ");
                txtKullanici.Text = "";
                txtSifre.Text     = "";
            }


            Console.ReadLine();
        }
        public void btnYenile_Click(object sender, EventArgs e)
        {
            string   ad      = KullaniciGiris.kullaniciadi;
            SqlBolum bolumm2 = new SqlBolum();

            dataAraziGoster.DataSource = bolumm2.ListDatas2(ad).Tables[0];
            dataDaireGoster.DataSource = bolumm2.ListDatas(ad).Tables[0];
        }
        private void btnGuncelle_Click(object sender, EventArgs e)
        {
            SqlBolum guncelleme = new SqlBolum();

            bool kayit = guncelleme.AraziUpdate(cmbImar.Text, cmbIl.Text, cmbIlce.Text, txtAlan.Text, txtAda.Text, txtParsel.Text, cmbTapu.Text, txtFiyat.Text);

            if (kayit == true)
            {
                MessageBox.Show("güncellendi");
            }
            else
            {
                MessageBox.Show("hata");
            }
        }
        private void btnGuncelle_Click(object sender, EventArgs e)
        {
            SqlBolum guncelleme = new SqlBolum();

            bool kayit = guncelleme.KonutUpdate(cmbIlanTuru.Text, cmbIlSec.Text, cmbIlce.Text, txtAdres.Text, txtKatNo.Text, txtAlan.Text, txtOdaSayisi.Text, txtBinaYili.Text, txtBinaYili.Text, txtFiyati.Text);

            if (kayit == true)
            {
                MessageBox.Show("güncellendi");
            }
            else
            {
                MessageBox.Show("hata");
            }
        }
        private void btnDaireSil_Click(object sender, EventArgs e)// BU KOD SATIRLARINDA EKLEDİĞİMİZ KONUT İLANI SİLME İŞLEMİNİ GERÇEKLEŞTİRİYORUZ.
        {
            string   adres     = dataDaireGoster.CurrentRow.Cells[3].Value.ToString();
            SqlBolum bolum     = new SqlBolum();
            bool     dogrulama = bolum.DaireKayitSilindiMi(adres);

            if (dogrulama == true)
            {
                MessageBox.Show("KAYIT SİLİNDİ");
                string   ad      = KullaniciGiris.kullaniciadi;
                SqlBolum bolumm2 = new SqlBolum();
                dataDaireGoster.DataSource = bolumm2.ListDatas2(ad).Tables[0];
            }
            else
            {
                MessageBox.Show("HATA!");
            }
        }
Ejemplo n.º 9
0
        private void btnSetting_Click(object sender, EventArgs e)
        {
            DialogResult cikis = new DialogResult();

            cikis = MessageBox.Show("Kayıt Silmek İstediğinize Emin Misiniz ?", "", MessageBoxButtons.YesNo);
            if (cikis == DialogResult.Yes)
            {
                SqlBolum sql       = new SqlBolum();
                bool     silindiMi = sql.KullaniciSil(lblKullanici.Text);
                if (silindiMi == true)
                {
                    MessageBox.Show("KAYDINIZ BAŞARIYLA SİLİNDİ.GİRİŞ EKRANINA YÖNLENDİRİLİYORSUNUZ !");
                    KullaniciGiris giris = new KullaniciGiris();
                    giris.Show();
                    this.Hide();
                }
            }
        }
Ejemplo n.º 10
0
        private void btnDogrulama_Click(object sender, EventArgs e)
        {
            int    uretilen  = KullaniciEkle.gonderilecekKod;
            string kul_adi   = KullaniciEkle.KullaniciAdiGonder;
            string kul_sifre = KullaniciEkle.KullaniciSifreGonder;
            string kul_mail  = KullaniciEkle.KullaniciMailGonder;



            if (txtGirilen.Text == uretilen.ToString())

            {
                SqlBolum Kaydet  = new SqlBolum();
                string   k_adi   = kul_adi;
                string   sifre   = kul_sifre;
                string   mail    = kul_mail;
                bool     kontrol = Kaydet.KayitEkle(k_adi, sifre, mail);
                if (kontrol == true)
                {
                    MessageBox.Show("BAŞARILI ! LÜTFEN GİRİŞ YAPINIZ !");

                    this.Close();
                    KullaniciEkle cik = new KullaniciEkle();
                    cik.Close();
                }
                else
                {
                    MessageBox.Show("KULLANICI ADI KULLANILMIŞTIR !");
                }
            }
            else
            {
                MessageBox.Show("GİRDİĞİNİZ KOD HATALI ! \n \n KALAN DENEME SAYISI = " + sayac);
                sayac = sayac - 1;
                if (sayac == -1)
                {
                    timer1.Stop();
                    MessageBox.Show("Güvenlik nedeniyle ANA EKRANA yönlendiriliyorsunuz !");
                    KullaniciGiris giris = new KullaniciGiris();
                    giris.Show();
                    this.Hide();
                }
            }
        }
        private void daireclick(object sender, EventArgs e)  //BU KOD SATIRLARINDA EKLEMİŞ OLDUĞUMUZ KONUT İLANLARINI LİSTELEMEKTEYİZ.
        {
            btnKonutGuncelle.Visible = true;
            btnAraziGuncelle.Visible = false;
            btnDaireSil.Visible      = true;
            btnAraziSil.Visible      = false;
            string   ad     = KullaniciGiris.kullaniciadi;
            SqlBolum bolumm = new SqlBolum();

            dataDaireGoster.DataSource = bolumm.ListDatas(ad).Tables[0];
            dataDaireGoster.Visible    = true;
            Color renk = button3.BackColor;

            button2.BackColor       = Color.Green;
            button1.BackColor       = renk;
            this.Width              = 761;
            this.Height             = 672;
            dataAraziGoster.Visible = false;
        }
        private void btnAraziSil_Click(object sender, EventArgs e)  // BU KOD SATIRLARINDA EKLEDİĞİMİZ ARAZİ İLANI SİLME İŞLEMİNİ GERÇEKLEŞTİRİYORUZ.
        {
            bool dogrulama = false;
            int  parsel    = Convert.ToInt32(dataAraziGoster.CurrentRow.Cells[5].Value);

            SqlBolum bolum = new SqlBolum();

            dogrulama = bolum.AraziKayitSilindiMi(parsel);
            if (dogrulama == true)
            {
                MessageBox.Show("KAYIT SİLİNDİ");
                string   ad      = KullaniciGiris.kullaniciadi;
                SqlBolum bolumm2 = new SqlBolum();
                dataAraziGoster.DataSource = bolumm2.ListDatas2(ad).Tables[0];
            }
            else
            {
                MessageBox.Show("HATA!");
            }
        }
Ejemplo n.º 13
0
        public void btnGonder_Click_1(object sender, EventArgs e) //BU KOD SATIRLARINDA BİLGİLERİNİ UNUTAN KULLANICIMIZA MAİL YOLUYLA HATIRLATMA İŞLEMİ GERÇEKLEŞTİRİYORUZ.
        {
            SqlBolum mailgonder = new SqlBolum();
            string   mailadresi = txtMail.Text;
            bool     varMi      = mailgonder.KayitHatirlatma(mailadresi);

            if (varMi == true)
            {
                SqlBolum   getir      = new SqlBolum();
                string     bilgi      = getir.gonder(txtMail.Text);
                MailGonder hatirlatma = new MailGonder();
                hatirlatma.KullaniciHatirlatma(mailadresi, bilgi);

                MessageBox.Show("kullanıcı bilgileri gönderildi");
                Dispose();
            }
            else
            {
                MessageBox.Show("kullanıcı mevcut değil");
            }
        }