Free cookie consent management tool by TermsFeed Policy Generator

source: branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.DeploymentService.AdminClient/UpdateServerPluginsButtonItem.cs @ 3015

Last change on this file since 3015 was 2802, checked in by gkronber, 14 years ago

Worked on administration front-end for deployment service. #860 (Deployment server for plugin installation from web locations)

File size: 1020 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.MainForm;
6
7namespace HeuristicLab.DeploymentService.AdminClient {
8  class UpdateServerPluginsButtonItem : HeuristicLab.MainForm.WindowsForms.ToolBarItem, IUserInterfaceItemProvider {
9    public override int Position {
10      get { return 30; }
11    }
12
13    public override string Name {
14      get { return "Update"; }
15    }
16
17    public override void Execute() {
18      UpdateAction.Execute(MainFormManager.MainForm);
19    }
20
21    protected override void OnActiveViewChanged(object sender, EventArgs e) {
22      IMainForm mainform = MainFormManager.MainForm;
23      if (mainform.ActiveView == null)
24        this.ToolStripItem.Enabled = false;
25      else
26        this.ToolStripItem.Enabled = !(mainform.ActiveView is PluginListView);
27    }
28
29    protected override void OnViewChanged(object sender, EventArgs e) {
30      this.ToolStripItem.Enabled = !this.ToolStripItem.Enabled;
31    }
32  }
33}
Note: See TracBrowser for help on using the repository browser.