Last change
on this file since 2580 was
2546,
checked in by swagner, 15 years ago
|
Continued work on Optimizer and on adapting all views to the new MainForm concept (#770)
|
File size:
1.0 KB
|
Rev | Line | |
---|
[2520] | 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 {
|
---|
[2546] | 11 | internal class OpenMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItemBase, IOptimizerUserInterfaceItemProvider {
|
---|
[2520] | 12 | public override string Name {
|
---|
| 13 | get { return "&Open..."; }
|
---|
| 14 | }
|
---|
| 15 | public override IEnumerable<string> Structure {
|
---|
| 16 | get { return new string[] { "&File" }; }
|
---|
| 17 | }
|
---|
| 18 | public override int Position {
|
---|
| 19 | get { return 1200; }
|
---|
| 20 | }
|
---|
| 21 | public override ToolStripItemDisplayStyle ToolStripItemDisplayStyle {
|
---|
| 22 | get { return ToolStripItemDisplayStyle.ImageAndText; }
|
---|
| 23 | }
|
---|
| 24 | public override Image Image {
|
---|
| 25 | get { return Resources.OpenIcon; }
|
---|
| 26 | }
|
---|
| 27 | public override Keys ShortCutKeys {
|
---|
| 28 | get { return Keys.Control | Keys.O; }
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | public override void Execute() {
|
---|
[2546] | 32 | FileManager.Open();
|
---|
[2520] | 33 | }
|
---|
| 34 | }
|
---|
| 35 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.