Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAllMenuItem.cs @ 2520

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: 985 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  public class SaveAllMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItemBase, IOptimizerUserInterfaceItemProvider {
12    public override string Name {
13      get { return "Save Al&l"; }
14    }
15
16    public override IEnumerable<string> Structure {
17      get { return new string[] { "&File" }; }
18    }
19
20    public override int Position {
21      get { return 1500; }
22    }
23
24    public override ToolStripItemDisplayStyle ToolStripItemDisplayStyle {
25      get { return ToolStripItemDisplayStyle.ImageAndText; }
26    }
27
28    public override Image Image {
29      get { return Resources.SaveAllIcon; }
30    }
31
32    public override void Execute() {
33      Actions.SaveAllAction.Execute();
34    }
35  }
36}
Note: See TracBrowser for help on using the repository browser.