Free cookie consent management tool by TermsFeed Policy Generator

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

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

Adapted HL 3.3 plugins according to changes in MainForm (#857)

File size: 860 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.MenuItem, 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.