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