예제 #1
0
 /// <summary>
 /// Closes the abbreviations scanner
 /// </summary>
 private void closeScanner()
 {
     if (_abbrForm != null)
     {
         Windows.CloseForm(_abbrForm);
         _abbrForm = null;
     }
 }
예제 #2
0
        /// <summary>
        /// Invoked when the Functional agent is activated.  This is
        /// the entry point for the functional agent.
        /// Creates the abbreviations scanner and displays
        /// it.  Subscribes to events.
        /// </summary>
        /// <returns>true on success</returns>
        public override bool Activate()
        {
            bool retVal = true;

            ExitCode  = CompletionCode.None;
            _abbrForm = Context.AppPanelManager.CreatePanel("AbbreviationsScanner") as AbbreviationsScanner;
            if (_abbrForm != null)
            {
                subscribeToEvents();

                Context.AppPanelManager.ShowDialog(_abbrForm);
            }
            else
            {
                retVal = false;
            }

            return(retVal);
        }
예제 #3
0
 /// <summary>
 /// Closes the abbreviations scanner
 /// </summary>
 private void closeScanner()
 {
     if (_abbrForm != null)
     {
         Windows.CloseForm(_abbrForm);
         _abbrForm = null;
     }
 }
예제 #4
0
        /// <summary>
        /// Invoked when the Functional agent is activated.  This is
        /// the entry point for the functional agent.
        /// Creates the abbreviations scanner and displays
        /// it.  Subscribes to events.
        /// </summary>
        /// <returns>true on success</returns>
        public override bool Activate()
        {
            bool retVal = true;

            ExitCode = CompletionCode.None;
            _abbrForm = Context.AppPanelManager.CreatePanel("AbbreviationsScanner") as AbbreviationsScanner;
            if (_abbrForm != null)
            {
                subscribeToEvents();

                Context.AppPanelManager.ShowDialog(_abbrForm);
            }
            else
            {
                retVal = false;
            }

            return retVal;
        }