Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/ExitMenuItem.cs @ 2668

Last change on this file since 2668 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 
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  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.