Example #1
0
        private void tsmiReloadAllStockData_Click(object sender, EventArgs e)
        {
            if (fbdOpen.ShowDialog(this).Equals(DialogResult.OK))
            {
                this.dlLib = new DataLib();

                this.dlLib.FileComplete += new FileCompleteEventHandler(dlLib_FileComplete);
                this.pbMain.Value = 0;
                this.pbMain.Maximum = dlLib.TotalFiles;
                this.pbMain.Minimum = 0;
                this.pbMain.Step = 1;

                this.bwLoadData.RunWorkerAsync();
            }

            this.ClearFields();
        }
Example #2
0
        private void tsmiLoadAStockFile_Click(object sender, EventArgs e)
        {
            if (this.ofdOpen.ShowDialog(this).Equals(DialogResult.OK))
            {
                this.dlLib = new DataLib();

                this.dlLib.StockDayComplete += new StockDayCompleteEventHandler(dlLib_StockDayComplete);
                this.pbMain.Value = 0;
                this.pbMain.Maximum = dlLib.TotalStockDays;
                this.pbMain.Minimum = 0;
                this.pbMain.Step = 1;

                this.bwLoadFile.RunWorkerAsync(ofdOpen.FileName);
            }
        }