public void AddData(CustomerDataTable data)
 {
     customerDataTable.Add(data);
 }
        private bool CreateData(ref CustomerData data, ref CustomerDataTableList dataTable)
        {
            CustomerDataTable tmpTable = new CustomerDataTable();
            String imagePath;
            bool ret = CheckValue();
            if (!ret)
                return ret;
            imagePath = Helper.SaveImageCapture(captureImageBox.Image.Bitmap, txt_vehNo.Text);
            data.AddCustomerData(txt_vehNo.Text,
                                cmb_category.Text,
                                cmb_vehMake.Text,
                                cmb_vehModel.Text,
                                txt_fuelTupe.Text,
                                txt_validUpto.Text,
                                txt_regYear.Text,
                                txt_result.Text,
                                imagePath);
            dataTable = generator.GetDataTableList();
            #if XMLDone
            for (int i = 0; i < grd_dataTable.RowCount-1; i++)
            {
                tmpSrno = Convert.ToInt32(grd_dataTable.Rows[i].Cells["srno"].Value.ToString());
                tmpRmpMin = Convert.ToInt32(grd_dataTable.Rows[i].Cells["rpmMin"].Value.ToString());
                tmpRpmMax = Convert.ToInt32(grd_dataTable.Rows[i].Cells["rpmMax"].Value.ToString());
                tmpOilTemp = Convert.ToInt32(grd_dataTable.Rows[i].Cells["oilTemp"].Value.ToString());
                tmpKval = Convert.ToDouble(grd_dataTable.Rows[i].Cells["kVal"].Value.ToString());
                tmpHsuper = Convert.ToDouble(grd_dataTable.Rows[i].Cells["hsuPer"].Value.ToString());

                tmpTable.AddCustomerDataTable(tmpSrno, tmpRmpMin, tmpRpmMax, tmpOilTemp, tmpKval, tmpHsuper);
                dataTable.AddData(tmpTable);
            }
            #endif
            return true;
        }