Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/CloseAllMenuItem.cs @ 2520

Last change on this file since 2520 was 2520, checked in by swagner, 14 years ago

Implemented first draft of MainForm support in HeuristicLab.Core/HeuristicLab.Core.Views and all other depending plugins (#770)

File size: 791 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Forms;
6using System.Drawing;
7using HeuristicLab.MainForm;
8using HeuristicLab.MainForm.WindowsForms;
9using HeuristicLab.Common.Resources;
10
11namespace HeuristicLab.Optimizer.MenuItems {
12  public class CloseAllMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItemBase, IOptimizerUserInterfaceItemProvider {
13    public override string Name {
14      get { return "Clos&e All"; }
15    }
16
17    public override IEnumerable<string> Structure {
18      get { return new string[] { "&File" }; }
19    }
20
21    public override int Position {
22      get { return 1700; }
23    }
24
25    public override void Execute() {
26      MainFormManager.MainForm.CloseAllViews();
27    }
28  }
29}
Note: See TracBrowser for help on using the repository browser.