Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BoundScreenElement&lt;CONTROLTYPE, PROPERTYTYPE&gt;"/> class.
        /// </summary>
        /// <param name="accessor">The accessor.</param>
        /// <param name="control">The control.</param>
        protected BoundScreenElement([NotNull] IPropertyAccessor accessor,
                                     [NotNull] CONTROLTYPE control)
            : base(control)
        {
            Assert.ArgumentNotNull(accessor, nameof(accessor));

            Accessor = accessor;
            Driver.AddLostFocusHandler(HandleLostFocus);
        }