private void button1_Click(object sender, EventArgs e)
        {
            UrunDetay dty = new UrunDetay(0, 0);

            dty.Show();
            this.Hide();
        }
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (con.State == ConnectionState.Closed)
            {
                con.Open();
            }
            int       secili = dataGridView1.SelectedCells[0].RowIndex;
            string    sorun  = dataGridView1.Rows[secili].Cells[0].Value.ToString();
            UrunDetay dty    = new UrunDetay(int.Parse(sorun), part);

            dty.Show();
            this.Hide();
        }