private void button7_Click(object sender, EventArgs e)
        {
            //Iadeler iadeler = (Iadeler)Application.OpenForms["Iadeler"];

            Iadeler iadeler = new Iadeler();

            iadeler.musteri_id = musteri_id;
            iadeler.Show();
        }
        private void button6_Click(object sender, EventArgs e)
        {
            Iadeler iadeler = new Iadeler();

            iadeler.toptanci_id = toptanci_id;
            iadeler.btnToptanciNakit.Visible  = true;
            iadeler.btnToptanciyaEkle.Visible = true;
            iadeler.button4.Visible           = false;
            iadeler.button6.Visible           = false;
            iadeler.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Iadeler iadeler = (Iadeler)Application.OpenForms["Iadeler"];

            iadeler.urun_id = Convert.ToInt32(dataGridView1.CurrentRow.Cells["id"].Value);

            string id           = baglanti.verileriOku("select id from urun_stok where id=" + iadeler.urun_id).Rows[0][0].ToString();
            string barkod       = baglanti.verileriOku("select barkod from urun_stok where id=" + id).Rows[0][0].ToString();
            string urun_adi     = baglanti.verileriOku("select urun_adi from urun_stok where id=" + id).Rows[0][0].ToString();
            int    stok_miktari = Convert.ToInt32(baglanti.verileriOku("select mevcut_stok from urun_stok where id=" + id).Rows[0][0].ToString());
            double satis_fiyati = Convert.ToDouble(baglanti.verileriOku("select satis_fiyati from urun_stok where id=" + id).Rows[0][0].ToString());

            iadeler.tablo.Rows.Add(id, barkod, urun_adi, satis_fiyati, 1, 1 * satis_fiyati);
            iadeler.dataGridView1.DataSource = iadeler.tablo;
            double toplam = 0;

            toplam  = Convert.ToDouble(iadeler.textBox3.Text);
            toplam += 1 * satis_fiyati;
            iadeler.textBox3.Text = toplam.ToString();
            this.Hide();
        }