Ejemplo n.º 1
0
 private void buttonFromCloudAudio_Click(object sender, RoutedEventArgs e)
 {
     IsErorConetctionFTPAudio = true;
     try
     {
         //progressBarDownload.IsIndeterminate = true;
         IEnumerable <string> listSound = FTPSinchronisation.GetListSound(true);
         int max = listSound.Count();
         if (max > 0)
         {
             progressBarDownload.Maximum = max;
         }
         backgroundWorkerLoadAudio.RunWorkerAsync(listSound);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + MethodBase.GetCurrentMethod().DeclaringType.FullName, "Внимание!", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }
Ejemplo n.º 2
0
        private void buttonToAudioCloud_Click(object sender, RoutedEventArgs e)
        {
            IsErorConetctionFTPAudioServer = true;
            try
            {
                listSounds = FTPSinchronisation.GetListSound(false);
                //MessageBox.Show(listSound.GetType().ToString());
                //return;

                int max = listSounds.Count();
                if (max > 0)
                {
                    progressBarDownload.Maximum = max;
                }
                CopyAudio(listSounds);
                backgroundWorkerWriteSeverAudio.RunWorkerAsync(listSounds);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + MethodBase.GetCurrentMethod().DeclaringType.FullName, "Внимание!", MessageBoxButton.OK, MessageBoxImage.Error);
                return;
            }
        }