private void btnKopyala_Click(object sender, EventArgs e) { try { if (gridView1.RowCount != 0) { secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId)); Entities.Tables.Cari cariEntity = new Entities.Tables.Cari(); cariEntity = cariDal.GetByFilter(context, c => c.Id == secilen); frmCariIslem form = new frmCariIslem(cariEntity, true); form.ShowDialog(); if (form.saved) { GetAll(); } } else { MessageBox.Show("Seçili Cari Bulunamadı"); } } catch (Exception) { MessageBox.Show("Seçili Cari Bulunamadı"); } }
private void btnEkle_Click(object sender, EventArgs e) { frmCariIslem form = new frmCariIslem(new Entities.Tables.Cari()); form.ShowDialog(); if (form.saved) { GetAll(); } }
private void gridView1_DoubleClick(object sender, EventArgs e) { secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId)); frmCariIslem form = new frmCariIslem(cariDal.GetByFilter(context, c => c.Id == secilen)); form.ShowDialog(); if (form.saved) { GetAll(); } }
private void btnCariKopyalaHizli_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId)); Entities.Tables.Cari cariEntity = new Entities.Tables.Cari(); cariEntity = cariDal.GetByFilter(context, c => c.Id == secilen); frmCariIslem form = new frmCariIslem(cariEntity, true); form.ShowDialog(); if (form.saved) { GetAll(); } } catch (Exception) { throw; } }
private void btnDuzenle_Click(object sender, EventArgs e) { try { if (gridView1.RowCount != 0) { secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId)); frmCariIslem form = new frmCariIslem(cariDal.GetByFilter(context, c => c.Id == secilen)); form.ShowDialog(); if (form.saved) { } } else { MessageBox.Show("Seçili Cari Bulunamadı"); } } catch (Exception) { MessageBox.Show("Seçili Cari Bulunamadı"); } }
private void brnCariDuzenle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (gridView1.RowCount != 0) { sec = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId)); frmCariIslem form = new frmCariIslem(cariDal.GetByFilter(context, c => c.Id == sec)); form.ShowDialog(); if (form.saved) { gridControl1.DataSource = cariDal.GetCariler(context); } } else { MessageBox.Show("Seçili Cari Bulunamadı"); } } catch (Exception) { MessageBox.Show("Seçili Cari Bulunamadı"); } }