Ejemplo n.º 1
0
        private void btnEkle_Click(object sender, EventArgs e)
        {
            FrmMusteri frm = new FrmMusteri();

            frm.isUpdate = false;
            this.Hide();
            frm.ShowDialog();
            this.Visible             = true;
            dto                      = bll.Select();
            dataGridView1.DataSource = dto.Musteriler;
        }
Ejemplo n.º 2
0
 private void btnGuncelle_Click(object sender, EventArgs e)
 {
     if (detay.ID == 0)
     {
         MessageBox.Show("Müşteri seçiniz");
     }
     else
     {
         FrmMusteri frm = new FrmMusteri();
         frm.isUpdate = true;
         frm.detaydto = detay;
         this.Hide();
         frm.ShowDialog();
         this.Visible             = true;
         bll                      = new MusteriBLL();
         dto                      = bll.Select();
         dataGridView1.DataSource = dto.Musteriler;
     }
 }