Exemplo n.º 1
0
        public void StartApplication(StartApplicationRequest request)
        {
            if (_proxy != null)
            {
                var rq = request as StartViewerApplicationRequest;
                //_startRequest = request;
                if (rq != null && rq.StudyInstanceUid.Count > 0)
                {
                    Platform.Log(LogLevel.Info, "Sending Start Application request to server for Study: {0}", rq.StudyInstanceUid[0]);
                }
                else
                {
                    Platform.Log(LogLevel.Info, "Sending Start Application request to server");
                }

                request.MetaInformation = new MetaInformation
                {
                    Language = Thread.CurrentThread.CurrentUICulture.Name
                };
                _proxy.StartApplicationAsync(request);
            }
            else
            {
                Platform.Log(LogLevel.Error, "Request for Start Application when no proxy client was created");
            }
        }