private void btnYeni_Click(object sender, EventArgs e)
        {
            frmYeniCariStokKategori frm = new frmYeniCariStokKategori(_stokCari);

            frm.Owner = this;
            frm.ShowDialog();
            if (_useParent)
            {
                LoadData(_parentCategory);
            }
            else
            {
                LoadData();
            }
        }
 private void btnDuzelt_Click(object sender, EventArgs e)
 {
     try {
         DataGridViewCell cell = dataGridView1.CurrentRow.Cells[clId.Name];
         if (cell != null)
         {
             string str = cell.Value.ToStringOrEmpty();
             frmYeniCariStokKategori frm = new frmYeniCariStokKategori(_stokCari, str);
             frm.ShowDialog();
             if (_useParent)
             {
                 LoadData(_parentCategory);
             }
             else
             {
                 LoadData();
             }
         }
     } catch (Exception exc) {
         MessageBox.Show(exc.Message); LogWrite.Write(exc);
     }
 }