private async void challengeCheckbox_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { if (!challengeCheckbox.IsChecked) { challengeCollectionView.HeightRequest = 20; challengeCollectionView.IsVisible = false; } else { try { if (teammembers.Count == 0) { teammembers = await App.client.GetTable <UserModel>().Where(u => u.TeamId == App.loggedInUser.TeamId).ToListAsync(); teammembers.RemoveAt(teammembers.FindIndex(a => a.Id == App.loggedInUser.Id)); } challengeCollectionView.ItemsSource = teammembers; } catch (Exception ex) { var properties = new Dictionary <string, string> { { "AddGoalPage", "challengeCheckbox_checkchanged" } }; Crashes.TrackError(ex, properties); } challengeCollectionView.IsVisible = true; challengeCollectionView.HeightRequest = teammembers.Count * 20; } }
void CheckBox_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { if (addressSetting != null) { addressSetting.IsSelected = false; } AddressSettingModel currentModel = ((CheckBox)sender).BindingContext as AddressSettingModel; addressSetting = currentModel; }
void cbBlue_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { if (e.Value) { signatureView.StrokeColor = Color.Blue; cbBlack.IsChecked = false; cbRed.IsChecked = false; cbGreen.IsChecked = false; } }
void CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs args) { var checkbox = (CheckBox)sender; var ob = checkbox.BindingContext as Book; if (ob != null) { App.Connection.insert(ob); } }
void RadioButton_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { OSAppTheme val = (OSAppTheme)((RadioButton)sender).Value; if (App.Current.UserAppTheme == val) { return; } App.Current.UserAppTheme = val; }
void OnCheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { bool check = e.Value; if (check) { } else { } }
void CheckTypeInput_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { setHidenView(flagCheckHidden); AddAddressButton.IsEnabled = (ProvincialEntry.Text == string.Empty ? true : false) && (DistrictEntry.Text == string.Empty ? true : false) && (StreesEntry.Text == string.Empty ? true : false); _ = provincialSelect != string.Empty ? (ProvincialEntry.Text = provincialSelect) : (ProvincialEntry.Text = string.Empty); _ = districtValue != string.Empty ? (DistrictEntry.Text = districtValue) : (DistrictEntry.Text = string.Empty); _ = wardValue != string.Empty ? (WardEntry.Text = wardValue) : (WardEntry.Text = string.Empty); _ = StreesEntry.Text != string.Empty ? (StreesEntryUser.Text = StreesEntry.Text) : (StreesEntryUser.Text = string.Empty); }
void CheckBox_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { if (addressSetting != null) { addressSetting.IsSelected = false; } AddressSettingModel currentModel = ((CheckBox)sender).BindingContext as AddressSettingModel; addressSetting = currentModel; if (currentModel.IsSelected) { var viewModel = BindingContext as CustomerPageVM; int index = viewModel.Items.IndexOf(currentModel); } }
void CheckBox_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { if (((CheckBox)sender).IsChecked) { register.IsEnabled = true; var animation = new Animation(v => register.WidthRequest = v, button, button * 2); animation.Commit(this, "Enable", length: 200, easing: Easing.Linear, finished: (v, c) => { consent.WidthRequest = button * 2; consent.IsEnabled = true; }, repeat: () => false); ViewModel.ResolvePermissions(); } else { register.IsEnabled = false; var animation = new Animation(v => register.WidthRequest = v, button * 2, button); animation.Commit(this, "Enable", length: 200, easing: Easing.Linear, finished: (v, c) => { consent.WidthRequest = button; consent.IsEnabled = false; }, repeat: () => false); } }
private async void step1CB_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { if (!constructorRunning) { goal.Checkbox1 = step1CB.IsChecked; goal.Checkbox2 = step2CB.IsChecked; goal.Checkbox3 = step3CB.IsChecked; goal.Checkbox4 = step4CB.IsChecked; goal.Checkbox5 = step5CB.IsChecked; goal.Checkbox6 = step6CB.IsChecked; goal.Checkbox7 = step7CB.IsChecked; goal.Checkbox8 = step8CB.IsChecked; goal.Checkbox9 = step9CB.IsChecked; goal.TargetValue = (goal.StepByStepAmount + 1).ToString(); goal.CurrentValue = ((step1CB.IsChecked ? 1 : 0) + (step2CB.IsChecked ? 1 : 0) + (step3CB.IsChecked ? 1 : 0) + (step4CB.IsChecked ? 1 : 0) + (step5CB.IsChecked ? 1 : 0) + (step6CB.IsChecked ? 1 : 0) + (step7CB.IsChecked ? 1 : 0) + (step8CB.IsChecked ? 1 : 0) + (step8CB.IsChecked ? 1 : 0)).ToString(); await UpdateGoalAndLeaderboard(goal); } }
void RadioButton_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) => isBackupSelected = e.Value;
void Internal_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { Public.IsChecked = !e.Value; }
async void CheckBox_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { var book = (Book)((CheckBox)sender).BindingContext; await App.Database.SaveBookAsync(book); }
void OnColorsRadioButtonCheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { }
void Enabled_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { currentUser.Enabled = e.Value; }
void Activated_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { currentUser.AccountActivated = e.Value; }
void AppInvokeRestrictionChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { restrictAppInvoke = e.Value; }
void CSharpCompilation_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { CSharpScript.IsChecked = !e.Value; }
void CheckBox_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { Console.WriteLine((sender as CheckBox).BindingContext); DeleteReminder((sender as CheckBox).BindingContext as Reminder); }
void CheckBox_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { (sender as CheckBox).IsChecked = true; }
void IsStagingChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) { isStaging = e.Value; }