Exemplo n.º 1
0
 void RDOdb_DownloadTemplateCompleted(object sender, DownloadTemplateCompletedEventArgs e)
 {
     string path = string.Format("{0}\\" + RDecisionFile, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));
     if (e.Error == null)
     {
         if (!File.Exists(path))
         {
             FileStream fs4 = new FileStream(path, FileMode.Create);
             fs4.Write(e.Result, 0, e.Result.Length);
             System.Threading.Thread.Sleep(1000);
             fs4.Close();
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void db1_DownloadTemplateCompleted(object sender, DownloadTemplateCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         string path = string.Empty;
         path = string.Format("{0}\\" + EstimateFile, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));
         if (!File.Exists(path))
         {
             FileStream fs = new FileStream(path, FileMode.Create);
             fs.Write(e.Result, 0, e.Result.Length);
             fs.Close();
         }
     }
 }