コード例 #1
0
        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());
        }
コード例 #2
0
        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;
        }