private void OnUpdateData(data.baseDS.priceDataRow row, libs.importStat stat)
        {
            if (fCanceled) stat.cancel =true;
            this.ShowMessage(stat.updateCount.ToString("###,###,##0") + "/" + 
                             stat.errorCount.ToString("###,###,##0") + "/"  + 
                             stat.dataCount.ToString("###,###,##0"), "Import");

            //Do Aggregate and reset import to clear system resource
            if (myDataSet.priceData.Count > constNumberOfImportInBatch)
            {
                application.DbAccess.UpdateData(myDataSet.priceData);
                DoAggregate(myDataSet.priceData);
                myDataSet.priceData.Clear();
            }
        }
 private void onAggregateData(libs.agrregateStat stat)
 {
     if (fCanceled) stat.cancel = true;
     this.ShowMessage(stat.count.ToString("###,###,##0") + "/" + stat.maxCount.ToString("###,###,##0"), "Aggregate " + stat.phase.ToString());
 }