Пример #1
0
        private void OnHostInitialized(IApplication app, IServiceContainer svcProvider, IModule[] modules)
        {
            m_MacroRunnerSvc = svcProvider.GetService <IMacroExecutor>();
            m_Msg            = svcProvider.GetService <IMessageService>();
            m_Logger         = svcProvider.GetService <IXLogger>();

            m_CadDesc = svcProvider.GetService <ICadDescriptor>();

            m_Data = new AssemblyBatchData(m_CadDesc);
        }
Пример #2
0
        private void OnConnect()
        {
            m_MacroRunnerSvc = m_Host.Services.GetService <IMacroRunnerExService>();
            m_Msg            = m_Host.Services.GetService <IMessageService>();
            m_Logger         = m_Host.Services.GetService <IXLogger>();

            m_Host.RegisterCommands <Commands_e>(OnCommandClick);
            m_Page          = m_Host.CreatePage <AssemblyBatchData>();
            m_Data          = new AssemblyBatchData(m_Host.Services.GetService <IMacroFileFilterProvider>());
            m_Page.Closing += OnPageClosing;
            m_Page.Closed  += OnPageClosed;
        }