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

                AppScan = appscan;
                AppScanGui = appScanGui;
                ExtensionDir = extensionDir;
                addO2MenuItems();
        }
Exemple #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));
        }
Exemple #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>
 ///  Add menu entries to AppScan
 /// </summary>
 /// <param name="appScanGui"></param>
 private void RegisterGuiHooks(IAppScanGui appScanGui)
 {
     foreach (IMenuItem<IssuesEventArgs> item in IssueMenuItems)
         appScanGui.IssueContextMenu.Add(item);
 }
 /// <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);
 }