コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 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;
     }
 }
コード例 #4
0
        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);
            }
        }
コード例 #5
0
        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;
        }
コード例 #6
0
        void OnCheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e)
        {
            bool check = e.Value;

            if (check)
            {
            }
            else
            {
            }
        }
コード例 #7
0
        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);
        }
コード例 #8
0
        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);
            }
        }
コード例 #9
0
 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);
     }
 }
コード例 #10
0
        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);
            }
        }
コード例 #11
0
 void RadioButton_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e) => isBackupSelected = e.Value;
コード例 #12
0
 void Internal_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e)
 {
     Public.IsChecked = !e.Value;
 }
コード例 #13
0
 async void CheckBox_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e)
 {
     var book = (Book)((CheckBox)sender).BindingContext;
     
     await App.Database.SaveBookAsync(book);
 }
コード例 #14
0
 void OnColorsRadioButtonCheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e)
 {
 }
コード例 #15
0
 void Enabled_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e)
 {
     currentUser.Enabled = e.Value;
 }
コード例 #16
0
 void Activated_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e)
 {
     currentUser.AccountActivated = e.Value;
 }
コード例 #17
0
 void AppInvokeRestrictionChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e)
 {
     restrictAppInvoke = e.Value;
 }
コード例 #18
0
 void CSharpCompilation_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e)
 {
     CSharpScript.IsChecked = !e.Value;
 }
コード例 #19
0
 void CheckBox_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e)
 {
     Console.WriteLine((sender as CheckBox).BindingContext);
     DeleteReminder((sender as CheckBox).BindingContext as Reminder);
 }
コード例 #20
0
 void CheckBox_CheckedChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e)
 {
     (sender as CheckBox).IsChecked = true;
 }
コード例 #21
0
 void IsStagingChanged(System.Object sender, Xamarin.Forms.CheckedChangedEventArgs e)
 {
     isStaging = e.Value;
 }