public static void Listen( EventRouter events, SPWrapper sp, Settings settings, DeviceWatcher watcher) { DeployListener.sp = sp; DeployListener.settings = settings; DeployListener.watcher = watcher; events.SubDataEvent (SPPluginEvents.StartDeploy, de => startDeploy()); events.SubDataEvent (SPPluginEvents.StartBuild, de => startBuild()); }
public SpaceportMenuController( SpaceportMenu menu, Control mainForm, Version version, EventRouter events, Settings settings, DeviceWatcher watcher) { this.mainForm = mainForm; this.settings = settings; this.watcher = watcher; menu.SelectTargets.Click += SelectTargets_Clicked; menu.About.Click += About_Clicked; menu.SpaceportWebsite.Click += SpaceportWebsite_Clicked; }