Exemple #1
0
 private void btnDownload_Click(object sender, EventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     Application.DoEvents();
     using (SndDownloadWizard dlg = new SndDownloadWizard(_PoemId, 0, 0, ""))
     {
         dlg.ShowDialog(this);
         if (dlg.AnythingInstalled)
         {
             FillGrid();
         }
     }
     Cursor.Current = Cursors.Default;
 }
Exemple #2
0
 /// <summary>
 /// همه خوانشهای قابل دریافت
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAllDownloadable_Click(object sender, EventArgs e)
 {
     using (AudioDownloadMethod audioDownloadMethod = new AudioDownloadMethod())
     {
         if (audioDownloadMethod.ShowDialog(this) == DialogResult.OK)
         {
             Cursor.Current = Cursors.WaitCursor;
             Application.DoEvents();
             using (SndDownloadWizard dlg = new SndDownloadWizard(0, audioDownloadMethod.PoetId, audioDownloadMethod.CatId, audioDownloadMethod.SearchTerm))
             {
                 dlg.ShowDialog(this);
                 if (dlg.AnythingInstalled)
                 {
                     FillGrid();
                 }
             }
             Cursor.Current = Cursors.Default;
         }
     }
 }