コード例 #1
0
        /// <summary>
        /// Runs all the necessary methods to get info To main window
        /// </summary>
        /// <returns></returns>
        public async Task UISettings()
        {
            Countries = await UIData.GetCountriesListAsync(progress);

            total_countries_info.DataContext = Countries;

            gb_info_start.Visibility = Visibility.Visible;


            Rates = await UIData.GetRatesAsync();

            CommentsCountry = Task.Run(() => UIData.GetCommentsData()).Result;


            if (Countries.Count > 0 && Rates.Count > 0)
            {
                SaveData();
            }
        }