public void InitialiseViewModel()
        {
            var igWebApiConnectionConfig = ConfigurationManager.GetSection("IgWebApiConnection") as NameValueCollection;
            var env = igWebApiConnectionConfig["environment"];

            var smartDispatcher = (SmartDispatcher)SmartDispatcher.GetInstance();

            smartDispatcher.SetViewModel(ApplicationViewModel.getInstance());

            IgRestApiClient = new IgRestApiClient(env, igWebApiConnectionConfig["account"], smartDispatcher);
        }
        public void InitialiseViewModel()
        {
            var    igWebApiConnectionConfig = ConfigurationManager.GetSection("IgWebApiConnection") as NameValueCollection;
            string env = igWebApiConnectionConfig["environment"];

            SmartDispatcher smartDispatcher = (SmartDispatcher)SmartDispatcher.getInstance();

            smartDispatcher.setViewModel(ApplicationViewModel.getInstance());

            igRestApiClient   = new IgRestApiClient(env, smartDispatcher);
            igStreamApiClient = new IGStreamingApiClient();
        }
 public void UpdatePositionMessage(string message)
 {
     ApplicationViewModel.getInstance().UpdateDebugMessage(message);
 }