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 | |
---|
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 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.