public static FramePageProxy <T> ConstructFromNormalPage <F, T>(this IEntityButtonContainer <F> container, ConstructSymbol <T> .From <F> symbol) where T : Entity where F : Entity { container.OperationClick(symbol); container.Element.GetDriver().Wait(() => { try { return(container.EntityInfo().IsNew); } catch { return(false); } }); return(new FramePageProxy <T>(container.Element.GetDriver())); }
public static Lite <T> GetLite <T>(this IEntityButtonContainer <T> container) where T : Entity { return((Lite <T>)container.EntityInfo().ToLite()); }