public IRegexView CreateView(IUseCase useCaseInstance)
        {
            IRegexView newView = useCaseInstance.CreateNewView();
            IRegexEngine engine = useCaseInstance.CreateNewEngine();
            engine.AttachView(newView);
            newView.Init(engine);

            return newView;
        }
示例#2
0
        public IRegexView CreateView(IUseCase useCaseInstance)
        {
            IRegexView   newView = useCaseInstance.CreateNewView();
            IRegexEngine engine  = useCaseInstance.CreateNewEngine();

            engine.AttachView(newView);
            newView.Init(engine);

            return(newView);
        }