Last change
on this file since 2578 was
2546,
checked in by swagner, 15 years ago
|
Continued work on Optimizer and on adapting all views to the new MainForm concept (#770)
|
File size:
864 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 | internal class ExitMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItemBase, IOptimizerUserInterfaceItemProvider {
|
---|
13 | public override IEnumerable<string> Structure {
|
---|
14 | get { return new string[] { "&File" }; }
|
---|
15 | }
|
---|
16 | public override string Name {
|
---|
17 | get { return "E&xit"; }
|
---|
18 | }
|
---|
19 | public override int Position {
|
---|
20 | get { return 1999; }
|
---|
21 | }
|
---|
22 | public override Keys ShortCutKeys {
|
---|
23 | get { return Keys.Control | Keys.X; }
|
---|
24 | }
|
---|
25 |
|
---|
26 | public override void Execute() {
|
---|
27 | MainFormManager.MainForm.Close();
|
---|
28 | }
|
---|
29 | }
|
---|
30 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.