private void btnAdd_Click(object sender, EventArgs e)
        {
            StockTransferInItemDetailUI loStockTransferInItemDetail = new StockTransferInItemDetailUI();

            loStockTransferInItemDetail.ParentList = this;
            loStockTransferInItemDetail.ShowDialog();
        }
 private void btnEdit_Click(object sender, EventArgs e)
 {
     try
     {
         StockTransferInItemDetailUI loStockTransferInItemDetail = new StockTransferInItemDetailUI(
             dgvDetail.CurrentRow.Cells["Id"].Value.ToString(),
             dgvDetail.CurrentRow.Cells["StockId"].Value.ToString(),
             dgvDetail.CurrentRow.Cells["LocationId"].Value.ToString(),
             decimal.Parse(dgvDetail.CurrentRow.Cells["QtyIn"].Value.ToString()),
             dgvDetail.CurrentRow.Cells["Remarks"].Value.ToString());
         loStockTransferInItemDetail.ParentList = this;
         loStockTransferInItemDetail.ShowDialog();
     }
     catch (Exception ex)
     {
         ErrorMessageUI em = new ErrorMessageUI(ex.Message, this.Name, "btnEdit_Click");
         em.ShowDialog();
         return;
     }
 }