private void SelectContentForComarison(string item1, string item2) { bool item1hasContent = _contentManagement.LoadItemContents(item1, ManipulationStates.Compare); if (item1hasContent) { Prod1ComparisonContent = _contentManagement.MoveNext().ContentPath; } bool item2hasContent = _contentManagement.LoadItemContents(item2, ManipulationStates.Compare); if (item2hasContent) { Prod2ComparisonContent = _contentManagement.MoveNext().ContentPath; } if (item1hasContent && item2hasContent) // Turn on comparison view { MediaContentState = "Compare"; } }
private void SelectContentBasedOnItem(string itemSelected, ManipulationStates state) { bool hasContent = _contentManagement.LoadItemContents(itemSelected, state); if (hasContent) { if (!IsVideoPlaying) { MediaSource = _contentManagement.MoveNext().ContentPath; } } else { ConfigurationProvider cp = new ConfigurationProvider(); IConfigSettings cs = cp.Load(); ErrorMessage = String.Format(@"Media Content is missing in the following directory: {0}\{1}, for interaction {2}", cs.RootContentDirectory, itemSelected, state.ToString()); } }