public AttachmentDetailViewModel(FileDescription file)
        {
            Title = file.Name;
            PrintCommand = new DelegateCommand<ChildWindow>(Print);

            var uriString = string.Concat(System.Windows.Browser.HtmlPage.Document.DocumentUri.ToString(), "api/files/", file.Id);
            Uri = new Uri(uriString, UriKind.Absolute);
        }
示例#2
0
 private void OpenFile(FileDescription file)
 {
     openDetailRequest.Raise(new AttachmentDetailViewModel(file));
 }