Esempio n. 1
0
        /// <summary>
        /// Starts and shows the process to organize all comics.
        /// </summary>
        /// <returns></returns>
        async Task OrganizeAsync()
        {
            _StartTime = DateTime.Now;
            PopulateDictionary();
            CleanDictionary();

            await MoveComics();

            _EndTime = DateTime.Now;
            ConsoleUtilities.Division();
            ConsoleUtilities.SuccessMessage("TASK FINISHED!");
            ConsoleUtilities.WarningMessage("{0} organizing {1} directories", (_EndTime - _StartTime).ToString(), "" + _TotalDirectories);

            ConsoleUtilities.WarningMessage("Success Rate: {0}%", SuccessProbability.ToString("P2"));
            ConsoleUtilities.WarningMessage("TOTAL ERROR COUNT: {0}", _Errors.Count + "");

            foreach (var errorMessage in _Errors)
            {
                ConsoleUtilities.ErrorMessage(errorMessage);
            }
        }