Пример #1
0
        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);
        }
Пример #2
0
 public UIView(UIContext context, IUIImplContainer implContainer)
 {
     this.context       = context;
     this.implContainer = implContainer;
 }