Ejemplo n.º 1
0
        /// <summary>
        /// The following is only a temporary method to house code
        /// that we cannot 'mock' or reproduce that lives inside the
        /// actual code base in PortLogic
        /// </summary>
        public void TempBootstrap()
        {
            EventBus eventBus = new EventBus();

            Canvas canvas = new Canvas();

            IParameter designerParameter = new DesignerParameter()
            {
                Canvas = canvas
            };

            Presenter <IDesignerView> designerPresenter = new DesignerPresenter(eventBus, designerParameter);
            IView view = designerPresenter.Present();

            this.MainPanel.Children.Add((UIElement)view);

            //What do we do with the managers? -> See Confluence Questions
            DesignerManager designerManager = new DesignerManager(eventBus);
        }
Ejemplo n.º 2
0
        public DesignerPresenter(IEventBus eventBus, IParameter parameter) : base(eventBus, parameter)
        {
            _parameter = (DesignerParameter)parameter;

            InitializeView();
        }