Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/OpenMenuItem.cs @ 2713

Last change on this file since 2713 was 2713, checked in by swagner, 15 years ago

Adapted HL 3.3 plugins according to changes in MainForm (#857)

File size: 904 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Forms;
6using System.Drawing;
7using HeuristicLab.MainForm.WindowsForms;
8using HeuristicLab.Common.Resources;
9
10namespace HeuristicLab.Optimizer.MenuItems {
11  internal class OpenMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IOptimizerUserInterfaceItemProvider {
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 Image Image {
22      get { return Resources.OpenIcon; }
23    }
24    public override Keys ShortCutKeys {
25      get { return Keys.Control | Keys.O; }
26    }
27
28    public override void Execute() {
29      FileManager.Open();
30    }
31  }
32}
Note: See TracBrowser for help on using the repository browser.