void CountriesViewController_CountrySelected(object sender, CountrySelectedEventArgs e)
 {
     lblCountry.Caption     = e.CountryFlag;
     lblCountry.Value       = e.CountryName;
     txtPhoneNumber.Caption = e.PhoneCode == string.Empty ? "" : $"+{e.PhoneCode}";
     ReloadData();
 }
コード例 #2
0
        void CountryTapped()
        {
            if (CountrySelected != null)
            {
                var index       = TableView.IndexPathForSelectedRow.Row;
                var countryCode = countriesManager.Countries.Keys.ToArray() [index];

                var e = new CountrySelectedEventArgs(countriesManager.Countries [countryCode], countryCode, countriesManager.CountryFlags [countryCode], countriesManager.PhoneCodes [countryCode]);

                CountrySelected(this, e);
            }

            NavigationController.PopViewController(true);
        }