Exemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        void InitialiseInterfaceListeners()
        {
            LoggingUtils.PrintFunction();

            //
            // Register command (UI button/element) listener.
            //

            OleMenuCommandService menuCommandService = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;

            m_interfaceEventListener = new UiCommandEventListener(this);

            m_interfaceEventListener.RegisterCallbacks(menuCommandService);
        }
Exemplo n.º 2
0
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    void InitialiseInterfaceListeners ()
    {
      LoggingUtils.PrintFunction ();

      // 
      // Register command (UI button/element) listener.
      // 

      OleMenuCommandService menuCommandService = GetService (typeof (IMenuCommandService)) as OleMenuCommandService;

      m_interfaceEventListener = new UiCommandEventListener (this);

      m_interfaceEventListener.RegisterCallbacks (menuCommandService);
    }