                            }
                        }

                        if (x >= valueX)
                        {
                            if (State)
                            {
                                UpdateUI();
                            }
                        }
                    }
                    OnSelectionChanged(new CustomConsentSwitchEventArgs(State));
