Пример #1
0
 /// <summary>
 /// Closes all the scanners
 /// </summary>
 private void closeScanner()
 {
     if (_volumeSettingsScanner != null)
     {
         Windows.CloseForm(_volumeSettingsScanner);
         _volumeSettingsScanner = null;
     }
 }
Пример #2
0
        /// <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);
        }