コード例 #1
0
        private void AddCountryDataToDB()
        {
            // Check fields
            if (!(CheckField(CountryName, "Country Name") &&
                  CheckField(WHO_CountryCode, "WHO Country Code") &&
                  CheckField(WHO_Region, "WHO Region") &&
                  CheckField(TotalCoronavirusCases, "Total Coronavirus Cases") &&
                  CheckField(TotalCoronavirusDeaths, "Total Coronavirus Deaths")))
            {
                return;
            }

            // Add data to DB
            _db.AddCountryDataToDB_Manual(_countryName, _WHOcountryCode, _WHOregion, _totalCases, _totalDeaths);
        }