Exemplo n.º 1
0
        private void btnMara_Click(object sender, EventArgs e)
        {
            mustc      = "";
            musadsoyad = "";

            durum = true;
            Frmmusteri musteri = new Frmmusteri();

            musteri.ShowDialog();

            txtmusteritc.Text      = mustc;
            txtmusteriadsoyad.Text = musadsoyad;
            durum = false;
        }
Exemplo n.º 2
0
 private void btnkaydet_Click(object sender, EventArgs e)
 {
     if (txtTC.Text != "")
     {
         if (FrmAnaktg.SayisalMi(txtTC.Text) == true)
         {
             if (txtad.Text != "")
             {
                 if (txtsoyad.Text != "")
                 {
                     if (mtxttel.Text != "")
                     {
                         if (txteposta.Text != "")
                         {
                             if (Frmmusteri.MailKontrolu(txteposta.Text) == true)
                             {
                                 if (cmbdep.SelectedIndex != -1)
                                 {
                                     Kaydetpersonel();
                                     btnsifre.Enabled = true;
                                     btnmail.Enabled  = true;
                                     txtsifre.Enabled = true;
                                 }
                                 else
                                 {
                                     MessageBox.Show("Departman Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                                     cmbdep.Focus();
                                 }
                             }
                             else
                             {
                                 MessageBox.Show("Lütfen Geçerli Bir E-Posta Adresi Giriniz!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                                 txteposta.Focus();
                             }
                         }
                         else
                         {
                             MessageBox.Show("E-Posta Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                             txteposta.Focus();
                         }
                     }
                     else
                     {
                         MessageBox.Show("Tel No Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                         mtxttel.Focus();
                     }
                 }
                 else
                 {
                     MessageBox.Show("Personel Soyadı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                     txtsoyad.Focus();
                 }
             }
             else
             {
                 MessageBox.Show("Personel Adı Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                 txtad.Focus();
             }
         }
         else
         {
             MessageBox.Show("TC Kimlik No, Sayısal Değer Olmalıdır!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             txtTC.Focus();
         }
     }
     else
     {
         MessageBox.Show("TC Kimlik No Boş Geçilemez!", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         txtTC.Focus();
     }
 }
Exemplo n.º 3
0
        private void altmenuMusteri_Click(object sender, EventArgs e)
        {
            Frmmusteri frmmusteri = new Frmmusteri();

            frmmusteri.ShowDialog();
        }