public void Load(IAppScan appscan, IAppScanGui appScanGui, string extensionDir) { "AppScan ExtensionDir: {0}".info(extensionDir); AppScan = appscan; AppScanGui = appScanGui; ExtensionDir = extensionDir; addO2MenuItems(); }
/// <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) { /* * 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); }
private void RegisterToEvents(IAppScan appScan) { _appScan.Scan.ScanEnded += OnScanScanned; }