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()); } }
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(); } }
public static V ValueLineValue <T, V>(this ILineContainer <T> lineContainer, Expression <Func <T, V> > property) where T : ModifiableEntity { return((V)lineContainer.ValueLine(property).Value); }
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; }
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)); }