예제 #1
0
        private void btnEkle_Click(object sender, EventArgs e)
        {
            FrmSatis frm = new FrmSatis();

            this.Hide();
            frm.dto = dto;
            frm.ShowDialog();
            this.Visible             = true;
            dto                      = bll.Select();
            dataGridView1.DataSource = dto.Satislar;
            Temizle();
        }
예제 #2
0
 private void btnGuncelle_Click(object sender, EventArgs e)
 {
     if (detay.UrunID == 0)
     {
         MessageBox.Show("Seçim yapınız");
     }
     else
     {
         FrmSatis frm = new FrmSatis();
         frm.dto      = dto;
         frm.detaydto = detay;
         frm.isUpdate = true;
         this.Hide();
         frm.ShowDialog();
         this.Visible             = true;
         bll                      = new SatisBLL();
         dto                      = bll.Select();
         dataGridView1.DataSource = dto.Satislar;
     }
 }