public void OpenRecord(PdfRecord record) { if (!_reader.Open(record)) { _events.PublishOnUIThread(new ShowMessageEvent("File not found", string.Format("Could not load the file for {0}", record.Title))); } }
public bool Open(PdfRecord record) { var fileName = string.Format("{0}.{1}", record.Reference, "pdf"); if (File.Exists(fileName)) { Process.Start(fileName); return(true); } return(false); }