Exemplo n.º 1
0
        public StocksAlgo(SubmitingProps props, ConnectionManager connectionManager)
        {
            this.props = props;
            this.connectionManager = connectionManager;

            outputDictionary = new Dictionary<string, DataTable>();

            Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
            ConfigurationManager.RefreshSection(config.AppSettings.SectionInformation.Name);
            ServerDirectoryName = ConfigurationManager.AppSettings["ServerDirectoryName"];
            ServerJavaDirectoryName = ConfigurationManager.AppSettings["ServerJavaDirectoryName"];
            ServerClassesDirectoryName = ConfigurationManager.AppSettings["ServerClassesDirectoryName"];
            ServerStocksDirectoryName = ConfigurationManager.AppSettings["ServerStocksDirectoryName"];
            ServerInputDir = ConfigurationManager.AppSettings["ServerInputDir"];
            JavaFilesFolder = ConfigurationManager.AppSettings["JavaFilesFolder"];
        }
Exemplo n.º 2
0
        private void Submit_Click(object sender, RoutedEventArgs e)
        {
            var connectionManager = new ConnectionManager();

            if(!connectionManager.createConnection())
            {
                MessageBox.Show("Connection to server has failed!");
                return;
            }

            connectionManager.InitServerFS();
            algo = new StocksAlgo(Props, connectionManager);
            startClac();
        }