Exemplo n.º 1
0
 /// <summary>
 /// Closes the abbreviations scanner
 /// </summary>
 private void closeScanner()
 {
     if (_form != null)
     {
         Windows.CloseForm(_form);
         _form         = null;
         _scannerShown = false;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Invoked when the Functional agent is activated.  This is
        /// the entry point for the functional agent.
        /// Creates the abbreviations scanner, subscribe to events
        /// </summary>
        /// <returns>true on success</returns>
        public override bool Activate()
        {
            bool retVal = true;

            _scannerShown = false;
            ExitCode      = CompletionCode.None;
            _form         = Context.AppPanelManager.CreatePanel("AbbreviationsScanner") as AbbreviationsScanner;
            if (_form != null)
            {
                _form.EvtDone             += _form_EvtDone;
                _form.EvtAddAbbreviation  += _form_EvtAddAbbreviation;
                _form.EvtEditAbbreviation += _form_EvtEditAbbreviation;
                _form.FormClosing         += _form_FormClosing;
                Context.AppPanelManager.ShowDialog(_form);
            }
            else
            {
                retVal = false;
            }

            return(retVal);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Closes the abbreviations scanner
 /// </summary>
 private void closeScanner()
 {
     if (_form != null)
     {
         Windows.CloseForm(_form);
         _form = null;
         _scannerShown = false;
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// Invoked when the Functional agent is activated.  This is
        /// the entry point for the functional agent.
        /// Creates the abbreviations scanner, subscribe to events
        /// </summary>
        /// <returns>true on success</returns>
        public override bool Activate()
        {
            bool retVal = true;

            _scannerShown = false;
            ExitCode = CompletionCode.None;
            _form = Context.AppPanelManager.CreatePanel("AbbreviationsScanner") as AbbreviationsScanner;
            if (_form != null)
            {
                _form.EvtDone += _form_EvtDone;
                _form.EvtAddAbbreviation += _form_EvtAddAbbreviation;
                _form.EvtEditAbbreviation += _form_EvtEditAbbreviation;
                _form.FormClosing += _form_FormClosing;
                Context.AppPanelManager.ShowDialog(_form);
            }
            else
            {
                retVal = false;
            }

            return retVal;
        }