コード例 #1
0
        public static void ValueLineValue <T, V>(this ILineContainer <T> lineContainer, Expression <Func <T, V> > property, V value, bool loseFocus = false)
            where T : ModifiableEntity
        {
            var valueLine = lineContainer.ValueLine(property);

            valueLine.Value = value;

            if (loseFocus)
            {
                lineContainer.Selenium.LoseFocus(valueLine.MainElement());
            }
        }
コード例 #2
0
        public static void ValueLineValue <T, V>(this ILineContainer <T> lineContainer, Expression <Func <T, V> > property, V value, bool loseFocus = false)
            where T : IModifiableEntity
        {
            var valueLine = lineContainer.ValueLine(property);

            valueLine.SetValue(value);

            if (loseFocus)
            {
                valueLine.EditableElement.Find().LoseFocus();
            }
        }
コード例 #3
0
 public static V ValueLineValue <T, V>(this ILineContainer <T> lineContainer, Expression <Func <T, V> > property)
     where T : ModifiableEntity
 {
     return((V)lineContainer.ValueLine(property).Value);
 }
コード例 #4
0
        public static void ValueLineValue <T, V>(this ILineContainer <T> container, Expression <Func <T, V> > property, V value, TreeScope scope = TreeScope.Descendants) where T : ModifiableEntity
        {
            PropertyRoute route = container.GetRoute(property);

            container.ValueLine(route, scope).Value = value;
        }
コード例 #5
0
        public static ValueLineProxy ValueLine <T>(this ILineContainer <T> container, Expression <Func <T, object> > property, TreeScope scope = TreeScope.Descendants) where T : ModifiableEntity
        {
            PropertyRoute route = container.GetRoute(property);

            return(container.ValueLine(route, scope));
        }