private void OpenMediaFile(object parameters)
        {
            if (parameters is MediaFile)
            {
                MediaFile mediaFile = (MediaFile)parameters;

                FileViewerVm dataContext = new FileViewerVm();

                using (HttpClient _httpClient = new HttpClient())
                {
                    _httpClient.BaseAddress = new Uri(ConfigurationManager.AppSettings.Get("MediaServiceUri"));
                    _httpClient.DefaultRequestHeaders.Accept.Clear();
                    _httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

                    Task <HttpResponseMessage> response = _httpClient.PostAsJsonAsync("api/MediaStream/GetMediaStream", mediaFile);

                    MediaStream mediaStream = response.Result.Content.ReadAsAsync <MediaStream>().Result;

                    dataContext.MediaStream = mediaStream;
                    dataContext.Result      = "Value from OpenMediaFile()";
                }
                WindowsController.ShowWindow(new WindowsControllerParam {
                    NewWindowStr = "FileViewerWindow", Parameters = dataContext
                });
            }
            else
            {
                MessageBox.Show("Wrong file!");
            }
        }
        public ViewModelClient()
        {
            WindowsController = new WindowsController();

            _mediaFiles = new ObservableCollection <MediaFile>();

            //  Fake note
            _mediaFiles.Add(new MediaFile
            {
                Name         = "Test file name",
                Description  = "fake note",
                Size         = 500,
                Type         = CommonElements.Enums.MediaType.NotSpecified,
                Path         = @"C:\",
                CreateDate   = DateTime.Now,
                ModifiedDate = DateTime.Now
            });

            WindowsControllerParamSettings = new WindowsControllerParam()
            {
                NewWindowStr = "SettingsWindow",
                Parameters   = this
            };
        }