source:
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/CloseMenuItem.cs
@
2520
Last change on this file since 2520 was 2520, checked in by swagner, 14 years ago | |
---|---|
File size: 815 bytes |
Line | |
---|---|
1 | using System; |
2 | using System.Collections.Generic; |
3 | using System.Linq; |
4 | using System.Text; |
5 | using System.Windows.Forms; |
6 | using System.Drawing; |
7 | using HeuristicLab.MainForm; |
8 | using HeuristicLab.MainForm.WindowsForms; |
9 | using HeuristicLab.Common.Resources; |
10 | |
11 | namespace HeuristicLab.Optimizer.MenuItems { |
12 | public class CloseMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItemBase, IOptimizerUserInterfaceItemProvider { |
13 | public override string Name { |
14 | get { return "&Close"; } |
15 | } |
16 | |
17 | public override IEnumerable<string> Structure { |
18 | get { return new string[] { "&File" }; } |
19 | } |
20 | |
21 | public override int Position { |
22 | get { return 1600; } |
23 | } |
24 | |
25 | public override void Execute() { |
26 | MainFormManager.MainForm.CloseView(MainFormManager.MainForm.ActiveView); |
27 | } |
28 | } |
29 | } |
Note: See TracBrowser
for help on using the repository browser.