Last change
on this file since 2520 was
2520,
checked in by swagner, 14 years ago
|
Implemented first draft of MainForm support in HeuristicLab.Core/HeuristicLab.Core.Views and all other depending plugins (#770)
|
File size:
1.0 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Windows.Forms;
|
---|
6 | using System.Drawing;
|
---|
7 | using HeuristicLab.MainForm.WindowsForms;
|
---|
8 | using HeuristicLab.Common.Resources;
|
---|
9 |
|
---|
10 | namespace HeuristicLab.Optimizer.MenuItems {
|
---|
11 | public class NewMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItemBase, IOptimizerUserInterfaceItemProvider {
|
---|
12 | public override string Name {
|
---|
13 | get { return "&New..."; }
|
---|
14 | }
|
---|
15 |
|
---|
16 | public override IEnumerable<string> Structure {
|
---|
17 | get { return new string[] { "&File" }; }
|
---|
18 | }
|
---|
19 |
|
---|
20 | public override int Position {
|
---|
21 | get { return 1100; }
|
---|
22 | }
|
---|
23 |
|
---|
24 | public override ToolStripItemDisplayStyle ToolStripItemDisplayStyle {
|
---|
25 | get { return ToolStripItemDisplayStyle.ImageAndText; }
|
---|
26 | }
|
---|
27 |
|
---|
28 | public override Image Image {
|
---|
29 | get { return Resources.NewIcon; }
|
---|
30 | }
|
---|
31 |
|
---|
32 | public override Keys ShortCutKeys {
|
---|
33 | get { return Keys.Control | Keys.N; }
|
---|
34 | }
|
---|
35 |
|
---|
36 | public override void Execute() {
|
---|
37 | Actions.NewAction.Execute();
|
---|
38 | }
|
---|
39 | }
|
---|
40 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.