public IUIImplContainer Create() { IUIImplContainer uic = container.RegisterSingleton <IUIImplContainer, UIImplContainer>().Resolve <IUIImplContainer>(); container.RegisterSingleton <IUIBaseContext, UILoginContext>(nameof(UILoginContext)); container.RegisterSingleton <IUIBaseController, CUILogin>(nameof(CUILogin)).Resolve <IUIBaseController>(nameof(CUILogin), new ParameterOverride(typeof(IUIBaseContext), container.Resolve <IUIBaseContext>(nameof(UILoginContext)))); uic.AddImpl((int)eUIImplement.Login, container.Resolve <IUIBaseController>(nameof(CUILogin))); return(uic); }
public UIView(UIContext context, IUIImplContainer implContainer) { this.context = context; this.implContainer = implContainer; }