private void btnEkle_Click(object sender, EventArgs e)
 {
     Uretim.frmUretimEmriDetay frmUretimEmriDetay = new frmUretimEmriDetay("-1");
     if (frmUretimEmriDetay.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         dt.Clear();
         daUretim.Update(dt);
         daUretim.Fill(dt);
     }
 }
        private void btnDegistir_Click(object sender, EventArgs e)
        {
            if (gvUretimEmri.FocusedRowHandle < 0)
            {
                return;
            }
            string SeciliID = gvUretimEmri.GetFocusedRowCellValue("UretimEmriID").ToString();

            Uretim.frmUretimEmriDetay frmUretimEmriDetay = new frmUretimEmriDetay(SeciliID);
            if (frmUretimEmriDetay.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                frmUretimEmri_Load(null, null);
                EklenenSatiraKonumlan(SeciliID);
            }
        }