Exemplo n.º 1
0
        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);
                }
            }
        }
Exemplo n.º 2
0
 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);
         }
     }
 }