예제 #1
0
        private void backgroundWorker_ParsingOptions_DoWork(object sender, DoWorkEventArgs e)
        {
            var worker = (BackgroundWorker)sender;

            BgWorkerCommon.Parse <EOD_Option_CSV, EOD_Option>(
                worker,
                OptionFilePaths,
                "Options",
                FilterRowAndGetProductName,
                FilterRows,
                out ParsedData.OptionProductName,
                out ParsedData.OptionRecords);

            e.Result = worker.CancellationPending;
        }
예제 #2
0
        private void backgroundWorker_ParsingFutures_DoWork(object sender, DoWorkEventArgs e)
        {
            var worker = (BackgroundWorker)sender;

            BgWorkerCommon.Parse <EOD_Future_CSV, EOD_Future>(
                worker,
                FutureFilePaths,
                "Futures",
                FilterRowAndGetProductName,
                FilterRows,
                out ParsedData.FutureProductName,
                out ParsedData.FutureRecords);

            e.Result = worker.CancellationPending;
        }