public override void Initialize(INavigationParameters parameters) { base.Initialize(parameters); if (parameters.ContainsKey("Countries")) { Countries = (ObservableCollection <Country>)parameters["Countries"]; var country = Countries.Where(x => x.country.Equals("Dominican Republic")).FirstOrDefault(); if (country != null) { Country = country; Title = Country.country; foreach (var item in Countries) { if (item.country != null) { CountryList.Add(item.country); } } _ = MaterialDialog.Instance.AlertAsync(message: $"{AppResources.MsgCountryStatus}\n{Title}", title: null, acknowledgementText: AppResources.MsgOk, configuration: Constants.alertDialogConfiguration); } } }
public AddContactViewModel(MainWindowViewModel parentVM, Person person) { try { AddPerson = person; object dc = Application.Current.MainWindow.DataContext; MainWindowViewModel t = (MainWindowViewModel)dc; HeaderTitle = t.GetDescriptions.EditContact_title; ParentVM = parentVM; LoadCommands(); CountryList.Add(new County() { Name = "Italy", CountryCode = "ITA", Number = "+39" }); CountryList.Add(new County() { Name = "China", CountryCode = "CHN", Number = "+22" }); CountryList.Add(new County() { Name = "UK", CountryCode = "ENG", Number = "+12" }); CountySelected = CountryList[0]; NotifyPropertyChanged("CountySelected"); NotifyPropertyChanged("CountryList"); } catch (Exception ex) { log.Error(ex.Message); } }
public AddContactViewModel(MainWindowViewModel parentVM) { try { ParentVM = parentVM; LoadCommands(); MainWindowViewModel mainWin = Application.Current.MainWindow.DataContext as MainWindowViewModel; HeaderTitle = mainWin.GetDescriptions.AddNewContact_title; CountryList.Add(new County() { Name = "Italy", CountryCode = "ITA", Number = "+39" }); CountryList.Add(new County() { Name = "China", CountryCode = "CHN", Number = "+22" }); CountryList.Add(new County() { Name = "UK", CountryCode = "ENG", Number = "+12" }); CountySelected = CountryList[0]; NotifyPropertyChanged("CountySelected"); NotifyPropertyChanged("CountryList"); } catch (Exception ex) { log.Error(ex.Message); } }
private async void GetCountries() { var response = await RestCountryApi.GetCountries(); CountryList.Clear(); foreach (var country in response) { CountryList.Add(country); } }
public async Task Init() { APIService.Username = "******"; APIService.Password = "******"; var countries = await _countryService.Get <List <CountryModel> >(null); foreach (var x in countries) { CountryList.Add(x); } }
public async Task Init() { if (CountryList.Count == 0) { var countryList = await _countryService.GetAll <List <Country> >(); foreach (var country in countryList) { CountryList.Add(country); } } }
/// <summary> /// Get countries from web countries. /// </summary> /// <param name="userContext">User context.</param> /// <param name="webCountries">Web countries.</param> /// <returns>Countries.</returns> private CountryList GetCountries(IUserContext userContext, List <WebCountry> webCountries) { CountryList countries; countries = new CountryList(); foreach (WebCountry webCountry in webCountries) { countries.Add(GetCountry(userContext, webCountry)); } return(countries); }
public void SquareBracketOperator() { CountryList newCountryList, oldCountryList; Int32 countryIndex; oldCountryList = GetCountries(true); newCountryList = new CountryList(); for (countryIndex = 0; countryIndex < oldCountryList.Count; countryIndex++) { newCountryList.Add(oldCountryList[oldCountryList.Count - countryIndex - 1]); } for (countryIndex = 0; countryIndex < oldCountryList.Count; countryIndex++) { Assert.AreEqual(newCountryList[countryIndex], oldCountryList[oldCountryList.Count - countryIndex - 1]); } }
public async Task Init() { Address address = new Address(); if (RequestId != null) { var request = await _requestService.GetById <Request>((int)RequestId); address = await _addressService.GetById <Address>(request.DeliveryAddress); DateValue = request.Date; Rooms = request.Rooms.ToString(); TotalWeightApprox = request.TotalWeightApprox.ToString(); TransportDistanceApprox = request.TransportDistanceApprox.ToString(); AdditionalInformation = request.AdditionalInformation; Street = address.Street; City = address.City; ZipCode = address.ZipCode; Additional = address.AdditionalAddress; AddressId = address.AddressId; Price = request.Price; } if (CountryList.Count == 0) { var countries = await _countryService.GetAll <List <Country> >(); foreach (var item in countries) { CountryList.Add(item); if (address.CountryId != 0) { if (item.CountryId == address.CountryId) { SelectedCountry = item; } } } if (address.CountryId != null) { SelectedIndex = (int)address.CountryId; } } }
public Page() { InitializeComponent(); DataContext = this; mw = (MainWindow)Application.Current.MainWindow; // Fill Country List foreach (string country in Countries.Names) { CountryList.Add(country); } // Fill State List foreach (string state in States.Abbreviations) { StateList.Add(state); } SetPageType(CurrentUser); }
public async Task Init() { _userId = int.Parse(JWTService.DecodeJWT()); var user = await _authService.GetById(_userId); AddressId = (int)user.AddressId; var address = await _addressService.GetById <Address>((int)user.AddressId); InitProperties(address); var countries = await _countryService.GetAll <List <Country> >(); foreach (var item in countries) { CountryList.Add(item); if (item.CountryId == address.CountryId) { SelectedCountry = item; } } SelectedIndex = (int)address.CountryId; }
public async Task Init() { try { var client = await _clientService.GetById <ClientModel>(APIService.LoggedUserId); var person = await _personService.GetById <PersonModel>(client.PersonId); var loginData = await _loginDataService.GetById <LoginDataModel>(person.LoginDataId); var country = await _countryService.GetById <CountryModel>(person.CountryId); var countries = await _countryService.Get <List <CountryModel> >(null); foreach (var x in countries) { CountryList.Add(x); } FirstName = person.FirstName; LastName = person.LastName; PhoneNumber = person.PhoneNumber; Email = person.Email; DateOfBirth = person.DateOfBirth; Address = person.Address; City = person.City; Username = loginData.Username; Password = "******"; SelectedCountryModel = country; CountryString = country.Name; RegistrationDate = client.RegistrationDate; ClientProfilePicture = client.ProfilePicture; } catch (Exception e) { Console.WriteLine(e); throw; } }
public void InitializeCountryList() { string address = "https://ru.wikipedia.org/wiki/Список_столиц_мира"; string html; using (var client = new WebClient()) { client.Headers.Add(HttpRequestHeader.UserAgent, ".NET Application"); client.Encoding = Encoding.UTF8; html = client.DownloadString(address); } var htmlDoc = new HtmlAgilityPack.HtmlDocument(); htmlDoc.LoadHtml(html); var trNodes = htmlDoc.DocumentNode.SelectNodes("//table[@class='wikitable sortable']"); foreach (var trNode in trNodes) { List <Country> tCountries = new List <Country>(); var nodes = trNode.SelectNodes(".//tr"); int coontOfCountries = nodes.Count; if (coontOfCountries > 0) { foreach (var row in nodes) { var rows = row.SelectNodes(".//td"); if (rows == null) { continue; } string tCapital = rows[1].InnerText; tCapital = tCapital.Replace("\n", string.Empty); string tCountry = rows[2].InnerText; tCountry = tCountry.Replace("\n", string.Empty); string tFlag = ""; int ioa = tCountry.IndexOf('&'); if (ioa > -1) { string inh = rows[2].InnerHtml.ToString(); string[] arr = inh.Split('<'); foreach (string s in arr) { if (s.Contains("srcset=")) { string[] arrins = s.Split('"'); tFlag = arrins[3]; tFlag = "https:" + tFlag.Replace("22px", "1000px"); } } tCountry = tCountry.Remove(ioa, tCountry.Length - ioa); CountryList.Add(new Country { Name = tCountry, Flag = tFlag, Capital = tCapital }); tCountries.Add(new Country { Name = tCountry, Flag = tFlag, Capital = tCapital }); } } } string tContinent = ""; if (tCountries.FirstOrDefault(x => x.Name == "Украина") != null) { tContinent = "Европа"; } else if (tCountries.FirstOrDefault(x => x.Name == "Китай") != null) { tContinent = "Азия"; } else if (tCountries.FirstOrDefault(x => x.Name == "Египет") != null) { tContinent = "Африка"; } else if (tCountries.FirstOrDefault(x => x.Name == "Чили") != null) { tContinent = "Америка"; } else if (tCountries.FirstOrDefault(x => x.Name == "Австралия") != null) { tContinent = "Австралия и Океания"; } if (tContinent.Length > 0) { List <Country> countries = GetCountriesByContinent(""); foreach (Country tCountry in countries) { tCountry.Continent = tContinent; } } } }
public void LoadPLCGrid() { Trace.Write("Enter LoadPLCGrid"); dg.Rows.Clear(); rowCount = 0; using (PLCList plc = Item != null ? Item.PLCDates : null) { if (SessionState.Culture.Type == CultureType.Locale) { // Country using (CountryList countries = new CountryList()) { countries.Add(SessionState.Culture.Country); AddCountrieRows(countries, plc, 0); } } else { // Region or master region using (HyperCatalog.Business.Region rootRegion = HyperCatalog.Business.Region.GetByShortCode(SessionState.Culture.CountryCode)) { AddRegion(rootRegion, plc, 0); } } Utils.InitGridSort(ref dg, false); if (rowCount > 0) { if (rowCount == 1) { // Add empty row UltraGridRow newRow = new UltraGridRow(new object[] { string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty }); dg.Rows.Add(newRow); newRow.Cells.FromKey("Region").AllowEditing = AllowEditing.No; newRow.Cells.FromKey("Region").Style.CssClass = "ro"; newRow.Cells.FromKey("Blind").AllowEditing = AllowEditing.No; newRow.Cells.FromKey("Blind").Style.CssClass = "ro"; newRow.Cells.FromKey("PID").AllowEditing = AllowEditing.No; newRow.Cells.FromKey("PID").Style.CssClass = "ro"; newRow.Cells.FromKey("POD").AllowEditing = AllowEditing.No; newRow.Cells.FromKey("POD").Style.CssClass = "ro"; newRow.Cells.FromKey("Announcement").AllowEditing = AllowEditing.No; newRow.Cells.FromKey("Announcement").Style.CssClass = "ro"; newRow.Cells.FromKey("Removal").AllowEditing = AllowEditing.No; newRow.Cells.FromKey("Removal").Style.CssClass = "ro"; rowCount++; } int height = (rowCount + 1) * 20; // (nb rows + header) if (height < 300) { dg.Height = Unit.Pixel(height); } } dg.DisplayLayout.CellClickActionDefault = CellClickAction.Edit; dg.DisplayLayout.AllowSortingDefault = AllowSorting.No; dg.DisplayLayout.UseFixedHeaders = true; dg.Columns.FromKey("ApplyChilds").Header.Fixed = true; dg.Columns.FromKey("Region").Header.Fixed = true; //Commented for fix QC 7304: Crystal UAT - In the Product Life Cycle section Delete functionality still available //dg.Columns.FromKey("ApplyChilds").Hidden = !SessionState.User.HasCapability(CapabilitiesEnum.MANAGE_PLC); dg.Columns.FromKey("ApplyChilds").Hidden = true; Trace.Write("Exit LoadPLCGrid"); } }
public void InitCountry() { CountryList.Add(new Countries { Name = "Афганистан", AlterName = "Afghanistan", Pref = "+93" }); CountryList.Add(new Countries { Name = "Albania", AlterName = "Албания", Pref = "+355" }); CountryList.Add(new Countries { Name = "Algeria", AlterName = "Алжир", Pref = "+21" }); CountryList.Add(new Countries { Name = "American Samoa", AlterName = "Американское Самоа", Pref = "+684" }); CountryList.Add(new Countries { Name = "Andorra", AlterName = "Андорра", Pref = "+376" }); CountryList.Add(new Countries { Name = "Angola", AlterName = "Ангола", Pref = "+244" }); CountryList.Add(new Countries { Name = "Anguilla", AlterName = "Anguilla", Pref = "+1-264" }); CountryList.Add(new Countries { Name = "Antigua and Barbuda", AlterName = "Антигуа и Барбуда", Pref = " +1-268" }); CountryList.Add(new Countries { Name = "Армения", AlterName = "Armenia", Pref = " +374" }); CountryList.Add(new Countries { Name = "Argentina", AlterName = "Аргентина", Pref = "+54" }); CountryList.Add(new Countries { Name = "Australia", AlterName = "Австралия", Pref = "+61" }); CountryList.Add(new Countries { Name = "Austria", AlterName = "Австрия", Pref = "+43" }); CountryList.Add(new Countries { Name = "Азербайджан", AlterName = "Azerbaijan", Pref = "+994" }); CountryList.Add(new Countries { Name = "Bahamas", AlterName = "Багамы", Pref = "+1-242" }); CountryList.Add(new Countries { Name = "Bahrain", AlterName = "Бахрейн", Pref = "+973" }); CountryList.Add(new Countries { Name = "Bangladesh", AlterName = "Бангладеш", Pref = "+880" }); CountryList.Add(new Countries { Name = "Barbados", AlterName = "Барбадос", Pref = "+1-246" }); CountryList.Add(new Countries { Name = "Белоруссия", AlterName = "Belarus", Pref = "+375" }); CountryList.Add(new Countries { Name = "Belgium", AlterName = "Бельгия", Pref = "+32" }); CountryList.Add(new Countries { Name = "Belize", AlterName = "Белиз", Pref = "+501" }); CountryList.Add(new Countries { Name = "Benin", AlterName = "Бенин", Pref = "+229" }); CountryList.Add(new Countries { Name = "Bermuda", AlterName = "Бермудские острова", Pref = "+1-441" }); CountryList.Add(new Countries { Name = "Bolivia", AlterName = "Боливия", Pref = "+591" }); CountryList.Add(new Countries { Name = "Bosnia and Herzegovina", AlterName = "Босния и Герцеговина", Pref = "+387" }); CountryList.Add(new Countries { Name = "Botswana", AlterName = "Ботсвана", Pref = "+267" }); CountryList.Add(new Countries { Name = "Brazil", AlterName = "Бразилия", Pref = "+55" }); CountryList.Add(new Countries { Name = "British Virgin Islands", AlterName = "British Virgin Islands", Pref = "+1-284" }); CountryList.Add(new Countries { Name = "Brunei Darusalaam", AlterName = "Бруней Даруэсалаам", Pref = "+673" }); CountryList.Add(new Countries { Name = "Болгария", AlterName = "Bulgaria", Pref = "+359" }); CountryList.Add(new Countries { Name = "Burkina Faso", AlterName = "Буркина Фасо", Pref = "+226" }); CountryList.Add(new Countries { Name = "Burundi", AlterName = "Бурунди", Pref = "+257" }); CountryList.Add(new Countries { Name = "Cambodia", AlterName = "Камбоджа", Pref = "+855" }); CountryList.Add(new Countries { Name = "Cameroon", AlterName = "Камерун", Pref = "+237" }); CountryList.Add(new Countries { Name = "Canada", AlterName = "Канада", Pref = "+1" }); CountryList.Add(new Countries { Name = "Cape Verde", AlterName = "Капе верде", Pref = "+238" }); CountryList.Add(new Countries { Name = "Cayman Islands", AlterName = "Каймановы острова", Pref = "+1-345" }); CountryList.Add(new Countries { Name = "Central African Republic", AlterName = " Центрально африканская республика", Pref = "+236" }); CountryList.Add(new Countries { Name = "Chad", AlterName = "Чад", Pref = "+235" }); CountryList.Add(new Countries { Name = "Chile", AlterName = "Чили", Pref = "+56" }); CountryList.Add(new Countries { Name = "Christmas Island", AlterName = "Рождественсткие острова", Pref = "+672" }); CountryList.Add(new Countries { Name = "Cocos Islands", AlterName = "Кокосовые острова", Pref = "+672" }); CountryList.Add(new Countries { Name = "Colombia", AlterName = "Колумбия", Pref = "+57" }); CountryList.Add(new Countries { Name = "Commonwealth of the Northern Mariana Islands", AlterName = "Содружество северных Марианских островов", Pref = "+1-670" }); CountryList.Add(new Countries { Name = "Comoros and Mayotte Island", AlterName = "Коморские и майотские(?) острова", Pref = "+269" }); CountryList.Add(new Countries { Name = "Congo", AlterName = "Конго", Pref = "+242" }); CountryList.Add(new Countries { Name = "Cook Islands", AlterName = "Острова Кука", Pref = "+682" }); CountryList.Add(new Countries { Name = "Costa Rica", AlterName = "Коста - Рика", Pref = "+506" }); CountryList.Add(new Countries { Name = "Croatia", AlterName = "Хорватия", Pref = "+385" }); CountryList.Add(new Countries { Name = "Cuba", AlterName = "Куба", Pref = "+53" }); CountryList.Add(new Countries { Name = "Cyprus", AlterName = "Кипр", Pref = "+357" }); CountryList.Add(new Countries { Name = "Czech Republic", AlterName = "Чешская республика", Pref = "+420" }); CountryList.Add(new Countries { Name = "Denmark", AlterName = "Дания", Pref = "+45" }); CountryList.Add(new Countries { Name = "Diego Garcia", AlterName = "Diego Garcia", Pref = "+246" }); CountryList.Add(new Countries { Name = "Djibouti", AlterName = "Джибути", Pref = "+253" }); CountryList.Add(new Countries { Name = "Dominica", AlterName = "Доминика", Pref = "+1-767" }); CountryList.Add(new Countries { Name = "Dominican Republic", AlterName = "Доминиканская республика", Pref = "+1-809" }); CountryList.Add(new Countries { Name = "East Timor", AlterName = "Восточный Тимор", Pref = "+62" }); CountryList.Add(new Countries { Name = "Ecuador", AlterName = "Эквадор", Pref = "+593" }); CountryList.Add(new Countries { Name = "Egypt", AlterName = "Египет", Pref = "+20" }); CountryList.Add(new Countries { Name = "El Salvador", AlterName = "Сальвадор", Pref = "+503" }); CountryList.Add(new Countries { Name = "Equatorial Guinea", AlterName = "Экваториальная Гвинея", Pref = "+240" }); CountryList.Add(new Countries { Name = "Estonia", AlterName = "Эстония", Pref = "+372" }); CountryList.Add(new Countries { Name = "Ethiopia", AlterName = "Эфиопия", Pref = "+251" }); CountryList.Add(new Countries { Name = "Faeroe Islands", AlterName = "Faeroe Islands", Pref = "+298" }); CountryList.Add(new Countries { Name = "Falkland Islands", AlterName = "Фолклендские острова", Pref = "+500" }); CountryList.Add(new Countries { Name = "Fiji", AlterName = "Фиджи", Pref = "+679" }); CountryList.Add(new Countries { Name = "Finland", AlterName = "Финляндия", Pref = "+358" }); CountryList.Add(new Countries { Name = "France", AlterName = "Франция", Pref = "+33" }); CountryList.Add(new Countries { Name = "French Antilles", AlterName = "Французские Антиллы", Pref = "+590" }); CountryList.Add(new Countries { Name = "French Guiana", AlterName = "Французская Гвиана", Pref = "+594" }); CountryList.Add(new Countries { Name = "French Polynesia", AlterName = "Франзузская полинезия", Pref = "+689" }); CountryList.Add(new Countries { Name = "Gabon", AlterName = "Габон", Pref = "+241" }); CountryList.Add(new Countries { Name = "Gambia", AlterName = "Гамбия", Pref = "+220" }); CountryList.Add(new Countries { Name = "Грузия", AlterName = "Georgia", Pref = "+995" }); CountryList.Add(new Countries { Name = "Germany", AlterName = "Германия", Pref = "+49" }); CountryList.Add(new Countries { Name = "Ghana", AlterName = "Гана", Pref = "+233" }); CountryList.Add(new Countries { Name = "Gibraltar", AlterName = "Гибралтар", Pref = "+350" }); CountryList.Add(new Countries { Name = "Greece", AlterName = "Греция", Pref = "+30" }); CountryList.Add(new Countries { Name = "Greenland", AlterName = "Гренландия", Pref = "+299" }); CountryList.Add(new Countries { Name = "Grenada", AlterName = "Гренада", Pref = "+1-473" }); CountryList.Add(new Countries { Name = "Guam", AlterName = "Гуам", Pref = "+671" }); CountryList.Add(new Countries { Name = "Guatemala", AlterName = "Гватемала", Pref = "+502" }); CountryList.Add(new Countries { Name = "Guinea", AlterName = "Гвинея", Pref = "+224" }); CountryList.Add(new Countries { Name = "Guinea - Bissau", AlterName = "Гвинея Биссау", Pref = "+245" }); CountryList.Add(new Countries { Name = "Guyana", AlterName = "Гайана", Pref = "+592" }); CountryList.Add(new Countries { Name = "Haiti", AlterName = "Гаити", Pref = "+509" }); CountryList.Add(new Countries { Name = "Honduras", AlterName = "Гондурас", Pref = "+504" }); CountryList.Add(new Countries { Name = "Hong Kong", AlterName = "Гонгконг", Pref = "+852" }); CountryList.Add(new Countries { Name = "Hungary", AlterName = "Венгрия", Pref = "+36" }); CountryList.Add(new Countries { Name = "Iceland", AlterName = "Исландия", Pref = "+354" }); CountryList.Add(new Countries { Name = "India", AlterName = "Индия", Pref = "+91" }); CountryList.Add(new Countries { Name = "Indonesia", AlterName = "Индонезия", Pref = "+62" }); CountryList.Add(new Countries { Name = "Iran", AlterName = "Иран", Pref = "+98" }); CountryList.Add(new Countries { Name = "Iraq", AlterName = "Ирак", Pref = "+964" }); CountryList.Add(new Countries { Name = "Irish Republic", AlterName = "Ирландская республика", Pref = "+353" }); CountryList.Add(new Countries { Name = "Israel", AlterName = "Израиль", Pref = "+972" }); CountryList.Add(new Countries { Name = "Italy", AlterName = "Италия", Pref = "+39" }); CountryList.Add(new Countries { Name = "Ivory Coast", AlterName = "Берег слоновой кости", Pref = "+225" }); CountryList.Add(new Countries { Name = "Jamaica", AlterName = "Ямайка", Pref = "+1-876" }); CountryList.Add(new Countries { Name = "Japan", AlterName = "Япония", Pref = "+81" }); CountryList.Add(new Countries { Name = "Jordan", AlterName = "Иордания", Pref = "+962" }); CountryList.Add(new Countries { Name = "Казахстан", AlterName = "Kazakhstan", Pref = "+7" }); CountryList.Add(new Countries { Name = "Kenya", AlterName = "Кения", Pref = "+254" }); CountryList.Add(new Countries { Name = "Kiribati Republic", AlterName = "Кирибати", Pref = "+686" }); CountryList.Add(new Countries { Name = "Кыргызстан", AlterName = "Kirghizia", Pref = "+996" }); CountryList.Add(new Countries { Name = "Kuwait", AlterName = "Кувейт", Pref = "+965" }); CountryList.Add(new Countries { Name = "Laos", AlterName = "Лаос", Pref = "+856" }); CountryList.Add(new Countries { Name = "Latvia", AlterName = "Латвия", Pref = "+371" }); CountryList.Add(new Countries { Name = "Lebanon", AlterName = "Ливан", Pref = "+961" }); CountryList.Add(new Countries { Name = "Lesotho", AlterName = "Лессото", Pref = "+266" }); CountryList.Add(new Countries { Name = "Liberia", AlterName = "Либерия", Pref = "+231" }); CountryList.Add(new Countries { Name = "Libya", AlterName = "Ливия", Pref = "+21" }); CountryList.Add(new Countries { Name = "Liechtenstein", AlterName = "Лихтенштейн", Pref = "+41" }); CountryList.Add(new Countries { Name = "Lithuania", AlterName = "Литва", Pref = "+370" }); CountryList.Add(new Countries { Name = "Luxembourg", AlterName = "Люксембург", Pref = "+352" }); CountryList.Add(new Countries { Name = "Macao", AlterName = "Макао", Pref = "+853" }); CountryList.Add(new Countries { Name = "Macedonia", AlterName = "Македония", Pref = "+389" }); CountryList.Add(new Countries { Name = "Madagascar", AlterName = "Мадагаскар", Pref = "+261" }); CountryList.Add(new Countries { Name = "Malawi", AlterName = "Малави", Pref = "+265" }); CountryList.Add(new Countries { Name = "Malaysia", AlterName = "Малайзия", Pref = "+60" }); CountryList.Add(new Countries { Name = "Maldives", AlterName = "Мальдивы", Pref = "+960" }); CountryList.Add(new Countries { Name = "Mali", AlterName = "Мали", Pref = "+223" }); CountryList.Add(new Countries { Name = "Malta", AlterName = "Мальта", Pref = "+356" }); CountryList.Add(new Countries { Name = "Marshall Islands", AlterName = "Маршалловы острова", Pref = "+692" }); CountryList.Add(new Countries { Name = "Martinique", AlterName = "Мартиника", Pref = "+596" }); CountryList.Add(new Countries { Name = "Mauritania", AlterName = "Мавритания", Pref = "+222" }); CountryList.Add(new Countries { Name = "Mauritius", AlterName = "Маврикий", Pref = "+230" }); CountryList.Add(new Countries { Name = "Mexico", AlterName = "Мексика", Pref = "+52" }); CountryList.Add(new Countries { Name = "Micronesia", AlterName = "Микронезия", Pref = "+691" }); CountryList.Add(new Countries { Name = "Monaco", AlterName = "Монако", Pref = "+377" }); CountryList.Add(new Countries { Name = "Монголия", AlterName = "Mongolia", Pref = "+976" }); CountryList.Add(new Countries { Name = "Montserrat", AlterName = "Montserrat", Pref = "+1-664" }); CountryList.Add(new Countries { Name = "Morocco", AlterName = "Мороко", Pref = "+212" }); CountryList.Add(new Countries { Name = "Mozambique", AlterName = "Мозамбик", Pref = "+258" }); CountryList.Add(new Countries { Name = "Myanmar", AlterName = "Myanmar", Pref = "+95" }); CountryList.Add(new Countries { Name = "Namibia", AlterName = "Намибия", Pref = "+264" }); CountryList.Add(new Countries { Name = "Nauru", AlterName = "Науру", Pref = "+674" }); CountryList.Add(new Countries { Name = "Nepal", AlterName = "Непал", Pref = "+977" }); CountryList.Add(new Countries { Name = "Netherlands", AlterName = "Нидерланды", Pref = "+31" }); CountryList.Add(new Countries { Name = "Netherlands Antilles", AlterName = "Нидерландские антиллы", Pref = "+599" }); CountryList.Add(new Countries { Name = "New Caledonia", AlterName = "Новая каледония", Pref = "+687" }); CountryList.Add(new Countries { Name = "New Zealand", AlterName = "Новая зеландия", Pref = "+64" }); CountryList.Add(new Countries { Name = "Nicaragua", AlterName = "Никарагуа", Pref = "+505" }); CountryList.Add(new Countries { Name = "Niger", AlterName = "Нигер", Pref = "+227" }); CountryList.Add(new Countries { Name = "Nigeria", AlterName = "Нигерия", Pref = "+234" }); CountryList.Add(new Countries { Name = "Niue", AlterName = "Niue", Pref = "+683" }); CountryList.Add(new Countries { Name = "Norfolk Island", AlterName = "Норфолкские острова", Pref = "+672" }); CountryList.Add(new Countries { Name = "North Korea", AlterName = "Северная Корея", Pref = "+850" }); CountryList.Add(new Countries { Name = "North Yemen", AlterName = "Северный Йемен", Pref = "+967" }); CountryList.Add(new Countries { Name = "Northern Mariana Islands", AlterName = "Северно Марианские острова", Pref = "+670" }); CountryList.Add(new Countries { Name = "Norway", AlterName = "Норвегия", Pref = "+47" }); CountryList.Add(new Countries { Name = "Oman", AlterName = "Оман", Pref = "+968" }); CountryList.Add(new Countries { Name = "Pakistan", AlterName = "Пакистан", Pref = "+92" }); CountryList.Add(new Countries { Name = "Panama", AlterName = "Панама", Pref = "+507" }); CountryList.Add(new Countries { Name = "Papua New Guinea", AlterName = "Папуа Новая Гвинея", Pref = "+675" }); CountryList.Add(new Countries { Name = "Paraguay", AlterName = "Парагвай", Pref = "+595" }); CountryList.Add(new Countries { Name = "Peru", AlterName = "Перу", Pref = "+51" }); CountryList.Add(new Countries { Name = "Philippines", AlterName = "Филипины", Pref = "+63" }); CountryList.Add(new Countries { Name = "Poland", AlterName = "Польша", Pref = "+48" }); CountryList.Add(new Countries { Name = "Portugal", AlterName = "Португалия", Pref = "+351" }); CountryList.Add(new Countries { Name = "Puerto Rico", AlterName = "Пуэрто Рико", Pref = "+1-787" }); CountryList.Add(new Countries { Name = "Qatar", AlterName = "Катар", Pref = "+974" }); CountryList.Add(new Countries { Name = "Republic of San Marino", AlterName = "Республика Сан Марино", Pref = "+ 378" }); CountryList.Add(new Countries { Name = "Reunion", AlterName = "Реоньон", Pref = "+262" }); CountryList.Add(new Countries { Name = "Romania", AlterName = "Румыния", Pref = "+40" }); CountryList.Add(new Countries { Name = "Россия", AlterName = "Russia", Pref = "+7" }); CountryList.Add(new Countries { Name = "Rwandese Republic", AlterName = "Республика Руанда", Pref = "+250" }); CountryList.Add(new Countries { Name = "Saint Helena and Ascension Island", AlterName = "Saint Helena and Ascension Island", Pref = "+247" }); CountryList.Add(new Countries { Name = "Saint Pierre et Miquelon", AlterName = "Saint Pierre et Miquelon", Pref = "+508" }); CountryList.Add(new Countries { Name = "San Marino", AlterName = "Сан Марино", Pref = "+39" }); CountryList.Add(new Countries { Name = "Sao Tome e Principe", AlterName = "Sao Tome e Principe", Pref = "+239" }); CountryList.Add(new Countries { Name = "Saudi Arabia", AlterName = "Саудовская Аравия", Pref = "+966" }); CountryList.Add(new Countries { Name = "Senegal", AlterName = "Сенегал", Pref = "+221" }); CountryList.Add(new Countries { Name = "Seychelles", AlterName = "Seychelles", Pref = "+248" }); CountryList.Add(new Countries { Name = "Sierra Leone", AlterName = "Сьерра Леоне", Pref = "+232" }); CountryList.Add(new Countries { Name = "Singapore", AlterName = "Сингапур", Pref = "+65" }); CountryList.Add(new Countries { Name = "Slovakia", AlterName = "Словакия", Pref = "+421" }); CountryList.Add(new Countries { Name = "Словения", AlterName = "Slovenia", Pref = "+386" }); CountryList.Add(new Countries { Name = "Solomon Islands", AlterName = "Соломоновы острова", Pref = "+677" }); CountryList.Add(new Countries { Name = "Somalia", AlterName = "Сомали", Pref = "+252" }); CountryList.Add(new Countries { Name = "South Africa", AlterName = "ЮАР", Pref = "+27" }); CountryList.Add(new Countries { Name = "South Korea", AlterName = "Южная Корея", Pref = "+82" }); CountryList.Add(new Countries { Name = "South Yemen", AlterName = "Южный Йемен", Pref = "+969" }); CountryList.Add(new Countries { Name = "Spain", AlterName = "Испания", Pref = "+34" }); CountryList.Add(new Countries { Name = "Sri Lanka", AlterName = "Шри Ланка", Pref = "+94" }); CountryList.Add(new Countries { Name = "St.Kitts and Nevis", AlterName = "St.Kitts and Nevis", Pref = "+1-869" }); CountryList.Add(new Countries { Name = "St.Lucia", AlterName = "St.Lucia", Pref = "+1-758" }); CountryList.Add(new Countries { Name = "St.Vincent and the Grenadines", AlterName = "St.Vincent and the Grenadines", Pref = "+1-784" }); CountryList.Add(new Countries { Name = "Sudan", AlterName = "Судан", Pref = "+249" }); CountryList.Add(new Countries { Name = "Suriname", AlterName = "Суринам", Pref = "+597" }); CountryList.Add(new Countries { Name = "Svalbard and Jan Mayen Islands", AlterName = "Svalbard and Jan Mayen Islands", Pref = "+47" }); CountryList.Add(new Countries { Name = "Swaziland", AlterName = "Свазиленд", Pref = "+268" }); CountryList.Add(new Countries { Name = "Sweden", AlterName = "Швеция", Pref = "+46" }); CountryList.Add(new Countries { Name = "Switzerland", AlterName = "Швейцария", Pref = "+41" }); CountryList.Add(new Countries { Name = "Syria", AlterName = "Сирия", Pref = "+963" }); CountryList.Add(new Countries { Name = "Таджикистан", AlterName = "Tadjikistan", Pref = "+992" }); CountryList.Add(new Countries { Name = "Taiwan", AlterName = "Тайвань", Pref = "+886" }); CountryList.Add(new Countries { Name = "Tanzania", AlterName = "Танзания", Pref = "+255" }); CountryList.Add(new Countries { Name = "Thailand", AlterName = "Тайланд", Pref = "+66" }); CountryList.Add(new Countries { Name = "Togolese Republic", AlterName = "Республика Тоголезе", Pref = "+228" }); CountryList.Add(new Countries { Name = "Tokelau", AlterName = "Tokelau", Pref = "+690" }); CountryList.Add(new Countries { Name = "Tonga", AlterName = "Тонго", Pref = "+676" }); CountryList.Add(new Countries { Name = "Trinidad and Tobago", AlterName = "Тринидад и Тобаго", Pref = "+1-868" }); CountryList.Add(new Countries { Name = "Tunisia", AlterName = "Тунис", Pref = "+21" }); CountryList.Add(new Countries { Name = "Turkey", AlterName = "Турция", Pref = "+90" }); CountryList.Add(new Countries { Name = "Туркменистан", AlterName = "Turkmenistan", Pref = "+993" }); CountryList.Add(new Countries { Name = "Turks & Caicos Islands", AlterName = "Turks & Caicos Islands", Pref = "+1-649" }); CountryList.Add(new Countries { Name = "Tuvalu", AlterName = "Tuvalu", Pref = "+688" }); CountryList.Add(new Countries { Name = "US Virgin Islands", AlterName = "US Virgin Islands", Pref = "+1-340" }); CountryList.Add(new Countries { Name = "Uganda", AlterName = "Уганда", Pref = "+256" }); CountryList.Add(new Countries { Name = "Украина", AlterName = "Ukraine", Pref = "+380" }); CountryList.Add(new Countries { Name = "United Arab Emirates", AlterName = " О.А.Э.", Pref = "+971" }); CountryList.Add(new Countries { Name = "United Kingdom", AlterName = "Великобритания", Pref = "+44" }); CountryList.Add(new Countries { Name = "Uruguay", AlterName = "Уругвай", Pref = "+598" }); CountryList.Add(new Countries { Name = "USA", AlterName = "США", Pref = "+1" }); CountryList.Add(new Countries { Name = "Узбекистан", AlterName = "Uzbekistan", Pref = "+998" }); CountryList.Add(new Countries { Name = "Vanuatu", AlterName = "Vanuatu", Pref = "+678" }); CountryList.Add(new Countries { Name = "Vatican City", AlterName = "Ватикан", Pref = "+39" }); CountryList.Add(new Countries { Name = "Venezuela", AlterName = "Венесуэла", Pref = "+58" }); CountryList.Add(new Countries { Name = "Vietnam", AlterName = "Вьетнам", Pref = "+84" }); CountryList.Add(new Countries { Name = "Wallis and Futuna Islands", AlterName = "Wallis and Futuna Islands", Pref = "+681" }); CountryList.Add(new Countries { Name = "Western Sahara", AlterName = "Западная Сахара", Pref = "+21" }); CountryList.Add(new Countries { Name = "Western Samoa", AlterName = "Западное Самоа", Pref = "+685" }); CountryList.Add(new Countries { Name = "Yugoslavia", AlterName = "Югославия", Pref = "+381" }); CountryList.Add(new Countries { Name = "Zaire", AlterName = "Заир", Pref = "+243" }); CountryList.Add(new Countries { Name = "Zambia", AlterName = "Замбия", Pref = "+260" }); CountryList.Add(new Countries { Name = "Zimbabwe", AlterName = "Зимбабве", Pref = "+263" }); }