private void ShowSelectedTrackInformation() { // Don't try to show the file information when nothing is selected if (this.SelectedTracks == null || this.SelectedTracks.Count == 0) { return; } Views.FileInformation view = this.container.Resolve <Views.FileInformation>(); view.DataContext = this.container.Resolve <FileInformationViewModel>(new DependencyOverride(typeof(TrackInfo), this.SelectedTracks.First())); this.dialogService.ShowCustomDialog(0xe8d6, 16, ResourceUtils.GetStringResource("Language_Information"), view, 400, 620, true, false, ResourceUtils.GetStringResource("Language_Ok"), string.Empty, null); }
protected void ShowFileInformation(List <string> paths) { if (this.CheckAllSelectedFilesExist(paths)) { Views.FileInformation view = this.container.Resolve <Views.FileInformation>(); view.DataContext = this.container.Resolve <FileInformationViewModel>(new DependencyOverride(typeof(string), paths.First())); this.dialogService.ShowCustomDialog( 0xe8d6, 16, ResourceUtils.GetStringResource("Language_Information"), view, 400, 620, true, true, true, false, ResourceUtils.GetStringResource("Language_Ok"), string.Empty, null); } }