private void Download() { var filePath = string.Empty; if (FileList.SelectedItems.Count == 0) { MessageBox.Show("You must select a file to download"); } else { var documentProcessorService = new DocumentProcessorService(); string path = documentProcessorService.DownloadDocument(FileList); if (path != string.Empty) { this.Close(); this.Dispose(); Process.Start("WINWORD.EXE", path); } } }
private void Download() { var filePath = string.Empty; if (FileList.SelectedItems.Count == 0) { MessageBox.Show("You must select a file to download"); } else { var documentProcessorService = new DocumentProcessorService(); string path = documentProcessorService.DownloadDocument(FileList); if (path!=string.Empty) { this.Close(); this.Dispose(); Process.Start("WINWORD.EXE",path); } } }