示例#1
0
 public SliderCaptcha(ImageDriver driver,
                      IOptions <SliderOptions> options,
                      CaptchaImageBuilder builder,
                      IImageProvider imageProvider)
 {
     _driver              = driver;
     _imageProvider       = imageProvider;
     _options             = options.Value;
     _captchaImageBuilder = builder;
 }
示例#2
0
        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;
            }
        }
示例#3
0
 public void RemoveSlider(int index)
 {
     SliderRemoved?.Invoke(SliderOptions[index]);
     SliderOptions.Remove(index);
 }
示例#4
0
///<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;
 }