public EXPRESSIONTYPE WithLabel([NotNull] Label label) { Styler.Default.ApplyStyle(label); _element.Label = ControlDriverFactory.GetDriver(label); return(ThisExpression()); }
private Action <object> _enableAction = delegate { }; // (target) => { }; #region Constructors /// <summary> /// Initializes a new instance of the <see cref="ScreenElement<T>"/> class. /// </summary> /// <param name="control">The control.</param> public ScreenElement([NotNull] T control) { Assert.ArgumentNotNull(control, nameof(control)); Driver = ControlDriverFactory.GetDriver(control); Styler.Default.ApplyStyle(control); _originalColor = Driver.BackColor; BoundControl = control; }
public static object Retrieve(object control) { return(Retrieve(ControlDriverFactory.GetDriver(control))); }
public static void Store(object control, object lastValue) { Store(ControlDriverFactory.GetDriver(control), lastValue); }