コード例 #1
0
 private void textBoxCountry_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     this.ShowingPopup = true;
     CountryPickerUC.Show(this.RegistrationPhoneNumberVM.Country, false, (Action <Country>)(c =>
     {
         this.ShowingPopup = false;
         this.RegistrationPhoneNumberVM.Country = c;
         ((Control)this.textBoxPhoneNumber).Focus();
     }), (Action)(() => this.ShowingPopup = false));
 }
コード例 #2
0
        public void ChooseCountry()
        {
            VKClient.Common.Backend.DataObjects.Country selectedCountry = new VKClient.Common.Backend.DataObjects.Country();
            selectedCountry.id = this._countryId;
            int num = 1;
            Action <VKClient.Common.Backend.DataObjects.Country> countryPickedCallback = (Action <VKClient.Common.Backend.DataObjects.Country>)(c =>
            {
                this._countryId = c.id;
                this.Country    = c.id != 0L ? c.name :  null;
            });

            // ISSUE: variable of the null type

            CountryPickerUC.Show(selectedCountry, num != 0, countryPickedCallback, null);
        }
コード例 #3
0
 private void CountryPicker_OnTap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     CountryPickerUC.Show(this.VM.Country, true, (Action <Country>)(country => this.VM.Country = country), null);
 }