Exemple #1
0
        private void InitializeData(object state)
        {
            // This creates a client to communicate with the server.
            TradingSupportClient tradingSupportClient = new TradingSupportClient(Properties.Settings.Default.TradingSupportEndpoint);

            SimulationParameters simulationParameters = tradingSupportClient.GetSimulationParameters();

            // Release the resources used to communicate with the server.
            tradingSupportClient.Close();

            this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new SetSimulationParametersHandler(OnSetSimulationParameters), simulationParameters);
        }