Пример #1
0
        private void btnEkle_Click(object sender, EventArgs e)
        {
            frmMasrafIslem form = new frmMasrafIslem(new Entities.Tables.Masraf());

            form.ShowDialog();
            if (form.saved)
            {
                MasrafListele();
            }
        }
Пример #2
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId));
            frmMasrafIslem form = new frmMasrafIslem(masrafDAL.GetByFilter(context, c => c.Id == secilen));

            form.ShowDialog();
            if (form.saved)
            {
                MasrafListele();
            }
        }
Пример #3
0
 private void btnDuzenle_Click(object sender, EventArgs e)
 {
     if (gridView1.RowCount != 0)
     {
         secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId));
         frmMasrafIslem form = new frmMasrafIslem(masrafDAL.GetByFilter(context, c => c.Id == secilen));
         form.ShowDialog();
         if (form.saved)
         {
             MasrafListele();
         }
     }
     else
     {
         MessageBox.Show("Seçili Masraf Kartı Bulunamadı");
     }
 }
Пример #4
0
 private void btnKopyala_Click(object sender, EventArgs e)
 {
     if (gridView1.RowCount != 0)
     {
         secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId));
         Entities.Tables.Masraf masrafEntity = new Entities.Tables.Masraf();
         masrafEntity = masrafDAL.GetByFilter(context, c => c.Id == secilen);
         frmMasrafIslem form = new frmMasrafIslem(masrafEntity, true);
         form.ShowDialog();
         if (form.saved)
         {
             MasrafListele();
         }
     }
     else
     {
         MessageBox.Show("Seçili Stok Bulunamadı");
     }
 }