Example #1
0
        public async Task asy4AnonsGenr()
        {
            MUProgressPerc += .06; MUProgressState = TaskbarItemProgressState.Normal;
            try
            {
                AG        = Brushes.Blue;
                Appender += "F4. Splitting and annons generation ... ";
                Val4      = 33;

                foreach (var path in Directory.GetDirectories(MiscHelper.DirPlyr, "*.*", SearchOption.TopDirectoryOnly))
                {
                    await PostDnldHelper.GenerateAllAndFolderAnons(_db, path);
                }

#if !DEBUG
                PostDnldHelper.CopyToMp3Player();
#endif

                Appender += "done. \r\n";
                Val4      = 100;
                AG        = Brushes.LightGreen;
            }
            catch (Exception ex) { ex.Log(); Appender += "\r\nDownloads failed.\r\n" + ex.ToString(); AG = Brushes.Violet; }
            MUProgressPerc += .09; MUProgressState = TaskbarItemProgressState.Paused;
        }
Example #2
0
 async Task onGenerateAnonces(object x)
 {
     Bpr.Beep1of2(); canGenerateAnoncesProp = false; await PostDnldHelper.GenerateAllAndFolderAnons(Db, MiscHelper.DirPlr2); Bpr.Beep2of2(); canGenerateAnoncesProp = true;
 }