public void Load(IAppScan appscan, IAppScanGui appScanGui, string extensionDir)
        {
            "AppScan ExtensionDir: {0}".info(extensionDir);

                AppScan = appscan;
                AppScanGui = appScanGui;
                ExtensionDir = extensionDir;
                addO2MenuItems();
        }
示例#2
0
        /// <summary>
        /// extension initialization. typically called on AppScan's startup
        /// </summary>
        /// <param name="appScan">main application object the extension is loaded into</param>
        /// <param name="extensionDir">extension's working directory</param>
        public void Load(IAppScan appscan, IAppScanGui appScanGui, string extensionDir)
        {
            /*
             * perform actions required for the extension to start running.
             */

            // Store the AppScan Instance
            _appScan = appscan;

            // Register AppScan Events
            RegisterToEvents(_appScan);

            ReadSettings();

            // Register AppScan GUI hooks
            appScanGui.ExtensionsMenu.Add(new MenuItem<EventArgs>("File to EXD", ShowConfigScreen));
        }
示例#3
0
        /// <summary>
        /// extension initialization. typically called on AppScan's startup
        /// </summary>
        /// <param name="appScan">main application object the extension is loaded into</param>
        /// <param name="extensionDir">extension's working directory</param>
        public void Load(IAppScan appscan, IAppScanGui appScanGui, string extensionDir)
        {
            /*
             * perform actions required for the extension to start running.
             */

            // Store the AppScan Instance
            _appScan = appscan;

            // Register AppScan Events
            RegisterToEvents(_appScan);

            ReadSettings();

            // Register AppScan GUI hooks
            appScanGui.ExtensionsMenu.Add(new MenuItem <EventArgs>("File to EXD", ShowConfigScreen));
        }
 /// <summary>
 /// extension initialization. typically called on AppScan's startup
 /// </summary>
 /// <param name="appScan">main application object the extension is loaded into</param>
 /// <param name="extensionDir">extension's working directory</param>
 public void Load(IAppScan appscan, IAppScanGui appScanGui, string extensionDir)
 {
     InitGuiHooks();
     RegisterGuiHooks(appScanGui);
 }
示例#5
0
 private void RegisterToEvents(IAppScan appScan)
 {
     _appScan.Scan.ScanEnded += OnScanScanned;
 }
示例#6
0
 private void RegisterToEvents(IAppScan appScan)
 {
     _appScan.Scan.ScanEnded += OnScanScanned;
 }