Esempio n. 1
0
        /// <summary>
        /// Saves the favorites to text asynchronous.
        /// </summary>
        /// <param name="dbName">Name of the database.</param>
        /// <param name="progressResult">The progress result.</param>
        /// <param name="system">The system.</param>
        /// <returns></returns>
        /// <exception cref="Exception">Failed saving database</exception>
        private async Task SaveFavoritesAsync(ProgressDialogController progressResult, string system)
        {
            progressResult.SetMessage("Saving Favorites");

            if (!await _hyperspinManager.SaveFavorites(system))
            {
                ;
            }

            progressResult.SetMessage(system + " favorites saved.");
        }