예제 #1
0
        private async void analyze()
        {
            StatusWindow win2 = new StatusWindow();
            win2.Show();

            InputParams i = new InputParams();
            i.numOfStocks = Int32.Parse(this.numOfStocks.Text);
            i.daysAgo = Int32.Parse(this.daysAgo.Text);
            i.clusters = Int32.Parse(this.clusters.Text);
            i.open = (bool)open.IsChecked;
            i.close = (bool)close.IsChecked;
            i.high = (bool)high.IsChecked;
            i.low = (bool)low.IsChecked;

            var im = new Managers.InputManager(i);
            await Task.Run(() => im.GetInputReady());

            var fm = new FilesManager(i.clusters);
            //await Task.Run(() => fm.TestRun());
            await Task.Run(() => fm.Start());
            win2.Close();

            var om = new OutputManager(im.allStocksData);
            ResultsWindow graphs = new ResultsWindow(om.clusters);
            graphs.Show();
        }
예제 #2
0
        public async void GetInputReady()
        {
            FilesManager.PrepareLocal();
            var stocksFiles = getStockFiles();

            FileUtils.ProcessStockFiles(stocksFiles);
        }