Example #1
0
        /// <summary>
        /// Initialises the flow controller.
        /// </summary>
        public void Initialise()
        {
            this.Logger.Log(TraceEventType.Information, "Flow controller initialising");
            this.TeamRibbonPresenter.Initialise(this.HandleDocumentRebind);
            this.TeamRibbonPresenter.Import             += new System.EventHandler(this.HandleTeamRibbonImport);
            this.TeamRibbonPresenter.Refresh            += new System.EventHandler(this.HandleTeamRibbonRefresh);
            this.TeamRibbonPresenter.ShowLayoutDesigner += new EventHandler(this.HandleShowLayoutDesigner);
            this.TeamRibbonPresenter.HideLayoutDesigner += new EventHandler(this.HandleHideLayoutDesigner);
            this.SetupLayoutDesignerPresenterEvents();
            this.SetupSystemTemplate();
            IWordApplication app = this.UnityContainer.Resolve <IWordApplication>();

            app.Initialise();
            this.Manager.Initialise();
            this.TeamRibbonPresenter.LoadState();
        }