Last change
on this file since 2256 was
2249,
checked in by mkommend, 15 years ago
|
adapted MainForm to create DropDownButtons (ticket #716)
|
File size:
867 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Windows.Forms;
|
---|
6 | using HeuristicLab.MainForm;
|
---|
7 | using HeuristicLab.Common.Resources;
|
---|
8 |
|
---|
9 | namespace HeuristicLab.MainForm.Test {
|
---|
10 | public class OpenToolStripMenuItem : ToolStripMenuItemBase, ITestUserInterfaceItemProvider {
|
---|
11 | public override string Name {
|
---|
12 | get { return "Open"; }
|
---|
13 | }
|
---|
14 |
|
---|
15 | public override string Structure {
|
---|
16 | get { return "File"; }
|
---|
17 | }
|
---|
18 |
|
---|
19 | public override int Position {
|
---|
20 | get { return 1200; }
|
---|
21 | }
|
---|
22 |
|
---|
23 | public override Keys ShortCutKeys {
|
---|
24 | get { return Keys.Control | Keys.O; }
|
---|
25 | }
|
---|
26 |
|
---|
27 | public override System.Drawing.Image Image {
|
---|
28 | get { return Resources.OpenIcon; }
|
---|
29 | }
|
---|
30 |
|
---|
31 | public override void Execute(IMainForm mainform) {
|
---|
32 | new OpenAction().Execute(mainform);
|
---|
33 | }
|
---|
34 | }
|
---|
35 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.