Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/NewToolBarItem.cs @ 2560

Last change on this file since 2560 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: 820 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Forms;
6using System.Drawing;
7using HeuristicLab.MainForm;
8using HeuristicLab.MainForm.WindowsForms;
9using HeuristicLab.Common.Resources;
10
11namespace HeuristicLab.Optimizer {
12  internal class NewToolBarItem : HeuristicLab.MainForm.WindowsForms.ToolBarItemBase, IOptimizerUserInterfaceItemProvider {
13    public override string Name {
14      get { return "New..."; }
15    }
16    public override string ToolTipText {
17      get { return "New Item (Ctrl + N)"; }
18    }
19    public override int Position {
20      get { return 10; }
21    }
22    public override Image Image {
23      get { return Resources.NewIcon; }
24    }
25
26    public override void Execute() {
27      FileManager.New();
28    }
29  }
30}
Note: See TracBrowser for help on using the repository browser.