public SliderCaptcha(ImageDriver driver, IOptions <SliderOptions> options, CaptchaImageBuilder builder, IImageProvider imageProvider) { _driver = driver; _imageProvider = imageProvider; _options = options.Value; _captchaImageBuilder = builder; }
public SliderOptionsPage(SliderOptions options) { InitializeComponent(); ViewModel.Init(options); DeviceDisplay.MainDisplayInfoChanged += DeviceDisplay_MainDisplayInfoChanged; if (DeviceDisplay.MainDisplayInfo.Orientation == DisplayOrientation.Landscape) { LandscapeLayout.IsVisible = true; PortraitLayout.IsVisible = false; } else { LandscapeLayout.IsVisible = false; PortraitLayout.IsVisible = true; } }
public void RemoveSlider(int index) { SliderRemoved?.Invoke(SliderOptions[index]); SliderOptions.Remove(index); }
///<summary> ///Creates a new instance of Slider ///</summary> public Slider(JsString selector, SliderOptions options) { Selector = J(selector); Selector.slider(options); }
public SliderValidator(IOptions <SliderOptions> options) { _options = options?.Value; }