Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.MainForm.Test/3.2/MenuItems/SaveToolStripMenuItem.cs @ 3190

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

first version of redesigned MainForm (ticket #857)

File size: 926 bytes
RevLine 
[2243]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
[2247]5using System.Windows.Forms;
[2243]6
[2458]7using HeuristicLab.MainForm.WindowsForms;
[2247]8using HeuristicLab.Common.Resources;
[2243]9
10namespace HeuristicLab.MainForm.Test {
[2696]11  public class SaveToolStripMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, ITestUserInterfaceItemProvider {
[2247]12    public override string Name {
13      get { return "Save"; }
14    }
15
[2458]16    public override IEnumerable<string> Structure {
17      get { return new string[]{"File"}; }
[2243]18    }
19
[2247]20    public override int Position {
[2249]21      get { return 1300; }
[2243]22    }
23
[2247]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
[2458]32    public override void Execute() {
33      new SaveAction().Execute(MainFormManager.MainForm);
[2243]34    }
35  }
36}
Note: See TracBrowser for help on using the repository browser.