private void GetWidgets() { mGoogleFab = (FloatingActionButton)FindViewById(Resource.Id.fab_google); mGoogleFab.Click += MGoogleFab_Click; mFacebookFab = (FloatingActionButton)FindViewById(Resource.Id.fab_fb); mFacebookFab.Click += MFacebookFab_Click; mRelativeLayout = (RelativeLayout)FindViewById(Resource.Id.onboard_root); mRelativeLayout.RequestFocus(); mLinearLayout = (LinearLayout)FindViewById(Resource.Id.mLinear_view_2); ccLinear = (LinearLayout)FindViewById(Resource.Id.cc_layout_2); mEditText = (EditText)FindViewById(Resource.Id.user_phone_edittext2); mEditText.SetCursorVisible(false); mEditText.Click += MEditText_Click; mEditText.FocusChange += MEditText_FocusChange; mLinearLayout.Click += MLinearLayout_Click; //country code tools countryFlagImg = (CircleImageView)FindViewById(Resource.Id.country_flag_img_2); builder = new CountryPicker.Builder().With(this).SortBy(CountryPicker.SortByName); picker = builder.Build(); country = picker.CountryFromSIM; countryFlagImg.SetBackgroundResource(country.Flag); }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Use this to return your custom view for this Fragment View view = inflater.Inflate(Resource.Layout.fragment_layout, null); var detailedCallsViewModel = new DetailedCallsViewModel(AnalysisActivity.AllCalls); itemList = new ListViewItemsBuilder().GetItems(detailedCallsViewModel); //listview and updates multiLevelRecyclerView = (MultiLevelRecyclerView)view.FindViewById(Resource.Id.MultiLevelView); multiLevelRecyclerView.SetLayoutManager(new LinearLayoutManager(Activity)); //itemList = recursivePopulateFakeData(0, 24); myAdapter = new MyAdapter(Activity, itemList, multiLevelRecyclerView); multiLevelRecyclerView.SetAdapter(myAdapter); multiLevelRecyclerView.ToggleItemOnClick = false; multiLevelRecyclerView.Accordion = true; multiLevelRecyclerView.OpenTill(0); FloatingActionButton fab = view.FindViewById <FloatingActionButton>(Resource.Id.fab); fab.SetImageResource(Resource.Drawable.ic_flag); fab.Click += (se, ev) => { //Toast.MakeText(Activity,"clicked!",ToastLength.Long).Show(); var dialog = new CountryPicker(); dialog.RegionCodeSelected += UpdateItems; dialog.Show(Activity.SupportFragmentManager, "Countries dialog"); }; return(view); }
private void FindByIson() { _countryPicker = new CountryPicker.Builder().With(this).Listener(this).Build(); var builder = new AlertDialog.Builder(this, R.Style.Base_Theme_MaterialComponents_Dialog_Alert); var input = new EditText(this) { InputType = InputTypes.ClassText | InputTypes.TextVariationPassword }; builder.SetTitle("Country Code") .SetView(input) .SetCancelable(false) .SetPositiveButton( textId: Android.Resource.String.Ok, handler: (sender, args) => { var country = _countryPicker.GetCountryByISO(input.Text); if (country == null) { ShowToast("Country not found"); } else { ShowResultActivity(country); } } ).SetNegativeButton( textId: Android.Resource.String.Cancel, handler: (sender, args) => (sender as IDialogInterface)?.Cancel() ).Show(); }
void ReleaseDesignerOutlets() { if (CountryPicker != null) { CountryPicker.Dispose(); CountryPicker = null; } if (lblValue != null) { lblValue.Dispose(); lblValue = null; } }
private void FindBySim() { _countryPicker = new CountryPicker.Builder().With(this).Listener(this).Build(); var country = _countryPicker.CountryFromSIM; if (country == null) { ShowToast("Country not found"); } else { ShowResultActivity(country); } }
private void FindByLocale() { _countryPicker = new CountryPicker.Builder().With(this).Listener(this).Build(); var country = _countryPicker.GetCountryByLocale(Locale.Default); if (country == null) { ShowToast("Country not found"); } else { ShowResultActivity(country); } }
private void InitControls() { mToolbar = (Android.Support.V7.Widget.Toolbar)FindViewById(Resource.Id.getting_started_toolbar); if (mToolbar != null) { SetSupportActionBar(mToolbar); } SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.Title = ""; CCLayout = (LinearLayout)FindViewById(Resource.Id.cc_layout); CCLayout.Click += (s3, e3) => { picker.ShowBottomSheet(this); }; CCTV = (TextView)FindViewById(Resource.Id.cc_textview); //country code tools countryFlagImg = (CircleImageView)FindViewById(Resource.Id.country_flag_img); countryFlagImg.RequestFocus(); builder = new CountryPicker.Builder().With(this).Listener(this).SortBy(CountryPicker.SortByName); picker = builder.Build(); country1 = picker.CountryFromSIM; country_code = country1.Code; countryFlagImg.SetBackgroundResource(country1.Flag); CCTV.Text = country1.DialCode; UserPhoneText = (EditText)FindViewById(Resource.Id.user_phone_edittext); UserPhoneText.AddTextChangedListener(this); UserPhoneText.SetOnKeyListener(this); PrimaryButton = (Button)FindViewById(Resource.Id.primary_btn); PrimaryButton.Click += (s1, e1) => { if (!CrossConnectivity.Current.IsConnected) { Android.Support.V4.App.DialogFragment dialogFragment = new NoNetworkFragment(); dialogFragment.Show(SupportFragmentManager, "no network"); } else { if (!ValidatePhoneNumberAndCode()) { return; } } }; }
public override void OnViewCreated(View view, Bundle savedInstanceState) { base.OnViewCreated(view, savedInstanceState); var appbarMain = view.FindViewById <AppBarLayout>(Resource.Id.enter_phone_appbar); var toolbarMain = appbarMain.FindViewById <Toolbar>(Resource.Id.main_toolbar); var countryLinear = view.FindViewById <ConstraintLayout>(Resource.Id.cpicker_lin); phoneEt = view.FindViewById <TextInputLayout>(Resource.Id.enter_phone_et); nextBtn = view.FindViewById <MaterialButton>(Resource.Id.enter_cont_btn); countryFlagIv = view.FindViewById <ImageView>(Resource.Id.cflag_iv); dialcodeTv = view.FindViewById <TextView>(Resource.Id.dialcode_tv); ((AppCompatActivity)Activity).SetSupportActionBar(toolbarMain); ((AppCompatActivity)Activity).SupportActionBar.SetDisplayHomeAsUpEnabled(true); toolbarMain.Title = "Enter phone"; toolbarMain.NavigationClick += ToolbarMain_NavigationClick; builder = new CountryPicker.Builder().With(Context).Listener(new CountryPickerListener((c) => { countryFlagIv.SetImageResource(c.Flag); dialcodeTv.Text = c.DialCode; phoneEt.RequestFocus(); })); picker = builder.Build(); var country = picker.CountryFromSIM; countryFlagIv.SetImageResource(country.Flag); dialcodeTv.Text = country.DialCode; phoneEt.RequestFocus(); phoneEt.EditText.TextChanged += EditText_TextChanged; countryLinear.Click += CountryLinear_Click; nextBtn.Click += NextBtn_Click; }
private void ShowPicker() { var builder = new CountryPicker.Builder().With(this).Listener(this); if (_styleSwitch.Checked) { builder.Style(R.Style.CountryPickerStyle); } builder.Theme(_themeSwitch.Checked ? CountryPicker.ThemeNew : CountryPicker.ThemeOld) .CanSearch(_searchSwitch.Checked) .SortBy(_sortBy); _countryPicker = builder.Build(); if (_useBottomSheet.Checked) { _countryPicker.ShowBottomSheet(this); } else { _countryPicker.ShowDialog(this); } }
private void InitializeComponent() { this.buttonClose = new System.Windows.Forms.Button(); this.buttonSave = new System.Windows.Forms.Button(); this.labelCountryPicker = new System.Windows.Forms.Label(); this.countryPicker = new CountryPicker(); this.labelCityCode = new System.Windows.Forms.Label(); this.textBoxCityCode = new System.Windows.Forms.TextBox(); this.labelCityName = new System.Windows.Forms.Label(); this.textBoxCityName = new System.Windows.Forms.TextBox(); this.labelUserPicker = new System.Windows.Forms.Label(); this.userPicker = new DefaultUserPicker(); this.labelDateTime = new System.Windows.Forms.Label(); this.dateTimePickerDateTime = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // // labelCountryPicker // this.labelCountryPicker.AutoSize = true; this.labelCountryPicker.Location = new System.Drawing.Point(11, 13); this.labelCountryPicker.Name = "labelCountryPicker"; this.labelCountryPicker.Size = new System.Drawing.Size(71, 13); this.labelCountryPicker.TabIndex = 2; this.labelCountryPicker.Text = "Country:"; // //countryPicker // this.countryPicker.Location = new System.Drawing.Point(140, 13); this.countryPicker.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.countryPicker.Name = "countryPicker"; this.countryPicker.Size = new System.Drawing.Size(250, 20); this.countryPicker.TabIndex = 3; // // labelCityCode // this.labelCityCode.AutoSize = true; this.labelCityCode.Location = new System.Drawing.Point(11, 36); this.labelCityCode.Name = "labelCityCode"; this.labelCityCode.Size = new System.Drawing.Size(71, 13); this.labelCityCode.TabIndex = 4; this.labelCityCode.Text = "City Code:"; // //textBoxCityCode // this.textBoxCityCode.Location = new System.Drawing.Point(140, 36); this.textBoxCityCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textBoxCityCode.Name = "textBoxCityCode"; this.textBoxCityCode.Size = new System.Drawing.Size(250, 20); this.textBoxCityCode.TabIndex = 5; // // labelCityName // this.labelCityName.AutoSize = true; this.labelCityName.Location = new System.Drawing.Point(11, 59); this.labelCityName.Name = "labelCityName"; this.labelCityName.Size = new System.Drawing.Size(71, 13); this.labelCityName.TabIndex = 6; this.labelCityName.Text = "City Name:"; // //textBoxCityName // this.textBoxCityName.Location = new System.Drawing.Point(140, 59); this.textBoxCityName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textBoxCityName.Name = "textBoxCityName"; this.textBoxCityName.Size = new System.Drawing.Size(250, 20); this.textBoxCityName.TabIndex = 7; // // labelUserPicker // this.labelUserPicker.AutoSize = true; this.labelUserPicker.Location = new System.Drawing.Point(11, 82); this.labelUserPicker.Name = "labelUserPicker"; this.labelUserPicker.Size = new System.Drawing.Size(71, 13); this.labelUserPicker.TabIndex = 8; this.labelUserPicker.Text = "User:"******"userPicker"; this.userPicker.Size = new System.Drawing.Size(250, 20); this.userPicker.TabIndex = 9; // // labelDateTime // this.labelDateTime.AutoSize = true; this.labelDateTime.Location = new System.Drawing.Point(11, 105); this.labelDateTime.Name = "labelDateTime"; this.labelDateTime.Size = new System.Drawing.Size(71, 13); this.labelDateTime.TabIndex = 10; this.labelDateTime.Text = "Date Time:"; // //dateTimePickerDateTime // this.dateTimePickerDateTime.Location = new System.Drawing.Point(140, 105); this.dateTimePickerDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dateTimePickerDateTime.Name = "dateTimePickerDateTime"; this.dateTimePickerDateTime.Size = new System.Drawing.Size(250, 20); this.dateTimePickerDateTime.TabIndex = 11; // // buttonClose // this.buttonClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonClose.Location = new System.Drawing.Point(298, 128); this.buttonClose.Name = "buttonClose"; this.buttonClose.Size = new System.Drawing.Size(92, 22); this.buttonClose.TabIndex = 1; this.buttonClose.Text = "&Close"; this.buttonClose.UseVisualStyleBackColor = true; this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click); // // buttonSave // this.buttonSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonSave.Location = new System.Drawing.Point(198, 128); this.buttonSave.Name = "buttonSave"; this.buttonSave.Size = new System.Drawing.Size(92, 22); this.buttonSave.TabIndex = 2; this.buttonSave.Text = "&Save"; this.buttonSave.UseVisualStyleBackColor = true; this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click); // // EditForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(402, 156); this.Controls.Add(this.buttonSave); this.Controls.Add(this.buttonClose); this.Name = "CrudeCityEdit"; this.Text = "City Edit"; this.Controls.Add(this.labelCountryPicker); this.Controls.Add(this.countryPicker); this.Controls.Add(this.labelCityCode); this.Controls.Add(this.textBoxCityCode); this.Controls.Add(this.labelCityName); this.Controls.Add(this.textBoxCityName); this.Controls.Add(this.labelUserPicker); this.Controls.Add(this.userPicker); this.Controls.Add(this.labelDateTime); this.Controls.Add(this.dateTimePickerDateTime); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); this.buttonClose = new System.Windows.Forms.Button(); this.buttonCrudeCityAdd = new System.Windows.Forms.Button(); this.buttonCrudeCityEdit = new System.Windows.Forms.Button(); this.buttonCrudeCitySearch = new System.Windows.Forms.Button(); this.dataGridViewCrudeCity = new System.Windows.Forms.DataGridView(); this.labelCityName = new System.Windows.Forms.Label(); this.textBoxCityName = new System.Windows.Forms.TextBox(); this.labelCityCode = new System.Windows.Forms.Label(); this.textBoxCityCode = new System.Windows.Forms.TextBox(); this.labelDateTime = new System.Windows.Forms.Label(); this.dateTimePickerDateTime = new System.Windows.Forms.TextBox(); this.labelCountryPicker = new System.Windows.Forms.Label(); this.countryPicker = new CountryPicker(); this.labelUserPicker = new System.Windows.Forms.Label(); this.userPicker = new DefaultUserPicker(); ((System.ComponentModel.ISupportInitialize)(this.dataGridViewCrudeCity)).BeginInit(); this.SuspendLayout(); // // labelCityName // this.labelCityName.AutoSize = true; this.labelCityName.Location = new System.Drawing.Point(11, 13); this.labelCityName.Name = "labelCityName"; this.labelCityName.Size = new System.Drawing.Size(71, 13); this.labelCityName.TabIndex = 2; this.labelCityName.Text = "City Name:"; // //textBoxCityName // this.textBoxCityName.Location = new System.Drawing.Point(140, 13); this.textBoxCityName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textBoxCityName.Name = "textBoxCityName"; this.textBoxCityName.Size = new System.Drawing.Size(250, 20); this.textBoxCityName.TabIndex = 3; // // labelCityCode // this.labelCityCode.AutoSize = true; this.labelCityCode.Location = new System.Drawing.Point(11, 36); this.labelCityCode.Name = "labelCityCode"; this.labelCityCode.Size = new System.Drawing.Size(71, 13); this.labelCityCode.TabIndex = 4; this.labelCityCode.Text = "City Code:"; // //textBoxCityCode // this.textBoxCityCode.Location = new System.Drawing.Point(140, 36); this.textBoxCityCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textBoxCityCode.Name = "textBoxCityCode"; this.textBoxCityCode.Size = new System.Drawing.Size(250, 20); this.textBoxCityCode.TabIndex = 5; // // labelDateTime // this.labelDateTime.AutoSize = true; this.labelDateTime.Location = new System.Drawing.Point(11, 59); this.labelDateTime.Name = "labelDateTime"; this.labelDateTime.Size = new System.Drawing.Size(71, 13); this.labelDateTime.TabIndex = 6; this.labelDateTime.Text = "Date Time:"; // //dateTimePickerDateTime // this.dateTimePickerDateTime.Location = new System.Drawing.Point(140, 59); this.dateTimePickerDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dateTimePickerDateTime.Name = "dateTimePickerDateTime"; this.dateTimePickerDateTime.Size = new System.Drawing.Size(250, 20); this.dateTimePickerDateTime.TabIndex = 7; // // labelCountryPicker // this.labelCountryPicker.AutoSize = true; this.labelCountryPicker.Location = new System.Drawing.Point(11, 82); this.labelCountryPicker.Name = "labelCountryPicker"; this.labelCountryPicker.Size = new System.Drawing.Size(71, 13); this.labelCountryPicker.TabIndex = 8; this.labelCountryPicker.Text = "Country:"; // //countryPicker // this.countryPicker.Location = new System.Drawing.Point(140, 82); this.countryPicker.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.countryPicker.Name = "countryPicker"; this.countryPicker.Size = new System.Drawing.Size(250, 20); this.countryPicker.TabIndex = 9; // // labelUserPicker // this.labelUserPicker.AutoSize = true; this.labelUserPicker.Location = new System.Drawing.Point(11, 105); this.labelUserPicker.Name = "labelUserPicker"; this.labelUserPicker.Size = new System.Drawing.Size(71, 13); this.labelUserPicker.TabIndex = 10; this.labelUserPicker.Text = "User:"******"userPicker"; this.userPicker.Size = new System.Drawing.Size(250, 20); this.userPicker.TabIndex = 11; // // dataGridViewCrudeCity // dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.dataGridViewCrudeCity.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.dataGridViewCrudeCity.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dataGridViewCrudeCity.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridViewCrudeCity.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dataGridViewCrudeCity.Location = new System.Drawing.Point(12, 138); this.dataGridViewCrudeCity.Name = "dataGridViewCrudeCity"; this.dataGridViewCrudeCity.Size = new System.Drawing.Size(378, 96); this.dataGridViewCrudeCity.TabIndex = 0; this.dataGridViewCrudeCity.ReadOnly = true; this.dataGridViewCrudeCity.DoubleClick += new System.EventHandler(this.dataGridViewCrudeCity_DoubleClick); // // buttonClose // this.buttonClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonClose.Location = new System.Drawing.Point(298, 241); this.buttonClose.Name = "buttonClose"; this.buttonClose.Size = new System.Drawing.Size(92, 22); this.buttonClose.TabIndex = 1; this.buttonClose.Text = "&Close"; this.buttonClose.UseVisualStyleBackColor = true; this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click); // // buttonCrudeCitySearch // this.buttonCrudeCitySearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCrudeCitySearch.Location = new System.Drawing.Point(198, 241); this.buttonCrudeCitySearch.Name = "buttonCrudeCitySearch"; this.buttonCrudeCitySearch.Size = new System.Drawing.Size(92, 22); this.buttonCrudeCitySearch.TabIndex = 2; this.buttonCrudeCitySearch.Text = "&Search"; this.buttonCrudeCitySearch.UseVisualStyleBackColor = true; this.buttonCrudeCitySearch.Click += new System.EventHandler(this.buttonCrudeCitySearch_Click); // // buttonCrudeCityAdd // this.buttonCrudeCityAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCrudeCityAdd.Location = new System.Drawing.Point(98, 241); this.buttonCrudeCityAdd.Name = "buttonCrudeCityAdd"; this.buttonCrudeCityAdd.Size = new System.Drawing.Size(92, 22); this.buttonCrudeCityAdd.TabIndex = 3; this.buttonCrudeCityAdd.Text = "&Add"; this.buttonCrudeCityAdd.UseVisualStyleBackColor = true; this.buttonCrudeCityAdd.Click += new System.EventHandler(this.buttonCrudeCityAdd_Click); // // buttonCrudeCityEdit // this.buttonCrudeCityEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCrudeCityEdit.Location = new System.Drawing.Point(-2, 241); this.buttonCrudeCityEdit.Name = "buttonCrudeCityEdit"; this.buttonCrudeCityEdit.Size = new System.Drawing.Size(92, 22); this.buttonCrudeCityEdit.TabIndex = 4; this.buttonCrudeCityEdit.Text = "&Edit"; this.buttonCrudeCityEdit.UseVisualStyleBackColor = true; this.buttonCrudeCityEdit.Click += new System.EventHandler(this.buttonCrudeCityEdit_Click); // // GridForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(402, 269); this.Controls.Add(this.buttonCrudeCitySearch); this.Controls.Add(this.buttonClose); this.Controls.Add(this.buttonCrudeCityAdd); this.Controls.Add(this.buttonCrudeCityEdit); this.Controls.Add(this.dataGridViewCrudeCity); this.Name = "CrudeCitySearch"; this.Text = "City Search"; ((System.ComponentModel.ISupportInitialize)(this.dataGridViewCrudeCity)).EndInit(); this.Controls.Add(this.labelCityName); this.Controls.Add(this.textBoxCityName); this.Controls.Add(this.labelCityCode); this.Controls.Add(this.textBoxCityCode); this.Controls.Add(this.labelDateTime); this.Controls.Add(this.dateTimePickerDateTime); this.Controls.Add(this.labelCountryPicker); this.Controls.Add(this.countryPicker); this.Controls.Add(this.labelUserPicker); this.Controls.Add(this.userPicker); this.ResumeLayout(false); this.PerformLayout(); }
public override void DidSelectCountryWithName(CountryPicker picker, string name, string code) { Debug.WriteLine(name, code); }
private void CountryOptionLabel_Tapped(object sender, EventArgs e) { CountryPicker.SelectedItem = country; CountryPicker.Focus(); }