/// <summary> /// Closes all the scanners /// </summary> private void closeScanner() { if (_volumeSettingsScanner != null) { Windows.CloseForm(_volumeSettingsScanner); _volumeSettingsScanner = null; } }
/// <summary> /// Invoked when the Functional agent is activated. This is /// the entry point. /// </summary> /// <returns>true on success</returns> public override bool Activate() { ExitCode = CompletionCode.None; var form = Context.AppPanelManager.CreatePanel("VolumeSettingsScanner"); if (form != null) { _volumeSettingsScanner = form as VolumeSettingsScanner; _volumeSettingsScanner.FormClosing += _volumeSettingsScanner_FormClosing; Context.AppPanelManager.ShowDialog(form as IPanel); } return(true); }
/// <summary> /// Invoked when the Functional agent is activated. This is /// the entry point. /// </summary> /// <returns>true on success</returns> public override bool Activate() { ExitCode = CompletionCode.None; var form = Context.AppPanelManager.CreatePanel("VolumeSettingsScanner"); if (form != null) { _volumeSettingsScanner = form as VolumeSettingsScanner; _volumeSettingsScanner.FormClosing += _volumeSettingsScanner_FormClosing; Context.AppPanelManager.ShowDialog(form as IPanel); } return true; }
/// <summary> /// Closes all the scanners /// </summary> private void closeScanner() { if (_volumeSettingsScanner != null) { Windows.CloseForm(_volumeSettingsScanner); _volumeSettingsScanner = null; } }