Example #1
0
 public GeneralForm(String UserType)
 {
     InitializeComponent();
     this.UserType = UserType;
     //_CountryCode.Items.Add("+234");
     //_CountryCode.Items.Add("+235");
     //_CountryCode.Items.Add("+236");
     //_CountryCode.Items.Add("+237");
     SignUpController.CallingCode(this, _CountryCode);
     //_CountryCode.SelectedIndex = 0;
 }
Example #2
0
        private void _CountryCode_Focused(object sender, FocusEventArgs e)
        {
            if (e.IsFocused)
            {
                ///PreviousSelectedIndex
                _CountryCode.Items.Clear();
                SignUpController.CallingCode(this, _CountryCode, PreviousSelectedIndex);
            }
            else
            {
                PreviousSelectedIndex = _CountryCode.SelectedIndex;
                String SelectedItem = _CountryCode.SelectedItem.ToString();
                //DisplayAlert("Alert", "Alert", "Ok");

                _CountryCode.Items.Clear();

                _CountryCode.Items.Add(SelectedItem.Split(' ')[1]);
                _CountryCode.SelectedIndex = 0;

                ShortCountryCode = SelectedItem.Split(' ')[0];
            }
        }