Last change
on this file since 3824 was
2458,
checked in by mkommend, 15 years ago
|
integrated branch MainForm refactoring into trunk (ticket #771)
|
File size:
930 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Windows.Forms;
|
---|
6 |
|
---|
7 | using HeuristicLab.MainForm.WindowsForms;
|
---|
8 | using HeuristicLab.Common.Resources;
|
---|
9 |
|
---|
10 | namespace HeuristicLab.MainForm.Test {
|
---|
11 | public class SaveToolStripMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItemBase, ITestUserInterfaceItemProvider {
|
---|
12 | public override string Name {
|
---|
13 | get { return "Save"; }
|
---|
14 | }
|
---|
15 |
|
---|
16 | public override IEnumerable<string> Structure {
|
---|
17 | get { return new string[]{"File"}; }
|
---|
18 | }
|
---|
19 |
|
---|
20 | public override int Position {
|
---|
21 | get { return 1300; }
|
---|
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() {
|
---|
33 | new SaveAction().Execute(MainFormManager.MainForm);
|
---|
34 | }
|
---|
35 | }
|
---|
36 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.