/// <summary> /// Closes the abbreviations scanner /// </summary> private void closeScanner() { if (_form != null) { Windows.CloseForm(_form); _form = null; _scannerShown = false; } }
/// <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); }
/// <summary> /// Closes the abbreviations scanner /// </summary> private void closeScanner() { if (_form != null) { Windows.CloseForm(_form); _form = null; _scannerShown = false; } }
/// <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; }