source: trunk/sources/HeuristicLab.MainForm.Test/3.2/SaveMenuItem.cs @ 2247

Last change on this file since 2247 was 2247, checked in by mkommend, 12 years ago

adapted HeuristicLab.MainForm.Test to use HL.Common.Resources (ticket #716)

File size: 865 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 SaveMenuItem : ToolStripMenuItemBase, ITestUserInterfaceItemProvider {
12    public override string Name {
13      get { return "Save"; }
14    }
15
16    public override string MenuStructure {
17      get { return "File"; }
18    }
19
20    public override int Position {
21      get { return 1200; }
22    }
23
24    public override Keys ShortCutKeys {
25      get { return Keys.Control | Keys.S; }
26    }
27
28    public override System.Drawing.Image Image {
29      get { return Resources.SaveIcon; }
30    }
31
32    public override void Execute(IMainForm mainform) {
33      MessageBox.Show("Save Execute called");
34    }
35  }
36}
Note: See TracBrowser for help on using the repository browser.