Пример #1
0
        /// <summary>
        /// Attach inherited class additional presenters is needed
        /// </summary>
        public void AttachExtraPresenters(CLEMPresenter clemPresenter)
        {
            object     newView         = new MarkdownView(clemPresenter.View as ViewBase);
            IPresenter labourPresenter = new LabourAllocationPresenter();

            if (newView != null && labourPresenter != null)
            {
                clemPresenter.View.AddTabView("Display", newView);
                labourPresenter.Attach(clemPresenter.Model, newView, clemPresenter.ExplorerPresenter);
                clemPresenter.PresenterList.Add("Display", labourPresenter);
            }
        }
Пример #2
0
 /// <summary>
 /// Attach inherited class additional presenters is needed
 /// </summary>
 public void AttachExtraPresenters(CLEMPresenter clemPresenter)
 {
     //Display
     try
     {
         object     newView         = new MarkdownView(clemPresenter.view as ViewBase);
         IPresenter labourPresenter = new LabourAllocationPresenter();
         if (newView != null && labourPresenter != null)
         {
             clemPresenter.view.AddTabView("Display", newView);
             labourPresenter.Attach(clemPresenter.model, newView, clemPresenter.explorerPresenter);
             clemPresenter.presenterList.Add("Display", labourPresenter);
         }
     }
     catch (Exception err)
     {
         this.explorerPresenter.MainPresenter.ShowError(err);
     }
 }