Example #1
0
 private void btnHareketler_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridStoklar.RowCount != 0)
     {
         sec = Convert.ToInt32(gridStoklar.GetFocusedRowCellValue(colId));
         frmStokHareket form = new frmStokHareket(sec); form.ShowDialog();
     }
     else
     {
         MessageBox.Show("Seçili Stok Bulunamadı");
     }
 }
Example #2
0
 private void btnStokHareket_Click(object sender, EventArgs e)
 {
     try
     {
         if (gridView1.RowCount != 0)
         {
             secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId));
             string         secilenAd = gridView1.GetFocusedRowCellValue(colId).ToString();
             frmStokHareket form      = new frmStokHareket(secilen);
             form.ShowDialog();
         }
         else
         {
             MessageBox.Show("Seçili Stok Bulunamadı");
         }
     }
     catch (Exception)
     {
         MessageBox.Show("Seçili Stok Bulunamadı");
     }
 }