private void StartDownloadOnClick(object sender, System.Windows.RoutedEventArgs e)
        {
            MarkerToStopDownload = false;
            Task.Run(async() =>
            {
                var vkService     = new VkDownloadService();
                var pathName      = Path.Combine(SettingsManager.Get(SettingsRequisites.Directory), ".playlist");
                var audioPlaylist = new JsonFileManager().ReadFile <List <VkSongModel> >(pathName);

                var audioToDownload = new SongsFileSynchronizer().GetSongsToDownload(audioPlaylist);

                await vkService.DeleteAndDownload(audioToDownload, new SongsFileSynchronizer().GetSongsToDelete(audioPlaylist));
            });
        }
        private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            var sid = SettingsManager.Get(SettingsRequisites.Sid);
            var uid = SettingsManager.Get(SettingsRequisites.DownloadForUid);

            LbIdDownloader.Content = "Загрузка...";
            Task.Run(async() =>
            {
                var vkService     = new VkDownloadService();
                var audioPlaylist = await vkService.GetUsersPlaylist(uid, sid);

                var pathName = Path.Combine(SettingsManager.Get(SettingsRequisites.Directory), ".playlist");
                new JsonFileManager().WriteFile(pathName, audioPlaylist);

                UiSynchronizer.Run(window =>
                {
                    LbIdDownloader.Content = $"{audioPlaylist.Count} файлов";
                    TbUid.Text             = SettingsManager.Get(SettingsRequisites.DownloadForUid);
                    SyncLabels();
                });
            });
        }