Example #1
0
 /// <summary>
 /// Closes the abbreviations scanner
 /// </summary>
 private void closeScanner()
 {
     if (_abbrForm != null)
     {
         Windows.CloseForm(_abbrForm);
         _abbrForm = null;
     }
 }
Example #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);
        }
Example #3
0
 /// <summary>
 /// Closes the abbreviations scanner
 /// </summary>
 private void closeScanner()
 {
     if (_abbrForm != null)
     {
         Windows.CloseForm(_abbrForm);
         _abbrForm = null;
     }
 }
Example #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;
        }