private void dgvArama_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataRow satir = null;

            try
            {
                int index = e.RowIndex;
                satir = dsMalzeme.Malzeme.Rows[index];
                Resim resim = new Resim(satir, dsMalzeme);
            }
            catch (Exception ex2)
            {
                Console.WriteLine(ex2.ToString());
            }
        }
        private void dgvCPS_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataRow satir = null;

            try
            {
                int index = e.RowIndex;
                satir = dsCPS.CPS.Rows[index];

                if (satir["RESIM"].ToString() == "adsiz.jpg" || satir["RESIM"].ToString() == "")
                {
                    Temizle();                       // Kayýt giriliyorsa iptal, yoksa oralýk fena halde karýþýr, zihohauahamnuana :D
                    YTNO = satir["YTNO"].ToString(); // YTNO resim ad için lazým...

                    if (ResimGuncelle() == false)    // resimAdi ni ayarla ve resmi hedefe kopyala...
                    {
                        return;
                    }

                    if (KayitGuncelle())
                    {
                        try
                        {
                            // TODO: This line of code loads data into the 'dsCPS.CPS' table. You can move, or remove it, as needed.
                            this.taCPS.Fill(this.dsCPS.CPS);
                        }
                        catch (Exception)
                        {
                            MessageBox.Show(this, Sabitler.hataBaglanti, "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error);
                            return;
                        }
                    }
                    else
                    {
                        MessageBox.Show(this, Sabitler.hataBaglanti, "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        return;
                    }
                }

                satir = dsCPS.CPS.Rows[index];
                Resim resim = new Resim(satir, dsCPS);
            }
            catch (Exception ex2)
            {
                Console.WriteLine(ex2.ToString());
            }
        }
        private void dgvCPS_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataRow satir = null;

            try
            {
                int index = e.RowIndex;
                satir = dsCPS.CPS.Rows[index];

                if (satir["RESIM"].ToString() == "adsiz.jpg" || satir["RESIM"].ToString() == "")
                {
                    Temizle(); // Kayýt giriliyorsa iptal, yoksa oralýk fena halde karýþýr, zihohauahamnuana :D
                    YTNO = satir["YTNO"].ToString(); // YTNO resim ad için lazým...

                    if (ResimGuncelle()==false) // resimAdi ni ayarla ve resmi hedefe kopyala...
                    {
                        return;
                    }

                    if (KayitGuncelle())
                    {
                        try
                        {
                            // TODO: This line of code loads data into the 'dsCPS.CPS' table. You can move, or remove it, as needed.
                            this.taCPS.Fill(this.dsCPS.CPS);
                        }
                        catch (Exception)
                        {
                            MessageBox.Show(this, Sabitler.hataBaglanti, "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error);
                            return;
                        }
                    }
                    else
                    {
                        MessageBox.Show(this, Sabitler.hataBaglanti, "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        return;
                    }
                }

                satir = dsCPS.CPS.Rows[index];
                Resim resim = new Resim(satir, dsCPS);
            }
            catch (Exception ex2)
            {
                Console.WriteLine(ex2.ToString());
            }
        }
 private void dgvArama_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     DataRow satir = null;
     try
     {
         int index = e.RowIndex;
         satir = dsMalzeme.Malzeme.Rows[index];
         Resim resim = new Resim(satir, dsMalzeme);
     }
     catch (Exception ex2)
     {
         Console.WriteLine(ex2.ToString());
     }
 }