Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.MainForm.Test/3.2/MenuItems/ExitToolStripMenuItem.cs @ 2254

Last change on this file since 2254 was 2254, checked in by mkommend, 15 years ago

added ability for toolstripitems to listen for specific events (ticket #716)

File size: 657 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Forms;
6
7using HeuristicLab.MainForm;
8using HeuristicLab.Common.Resources;
9
10namespace HeuristicLab.MainForm.Test {
11  public class CloseToolStripMenuItem : ToolStripMenuItemBase, ITestUserInterfaceItemProvider {
12    public override string Name {
13      get { return "Exit"; }
14    }
15
16    public override string Structure {
17      get { return "File"; }
18    }
19
20    public override int Position {
21      get { return 1400; }
22    }
23
24    public override void Execute(IMainForm mainform) {
25      mainform.CloseForm();
26    }
27  }
28}
Note: See TracBrowser for help on using the repository browser.