Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 2591 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
RevLine 
[2520]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 {
[2546]12  internal class NewToolBarItem : HeuristicLab.MainForm.WindowsForms.ToolBarItemBase, IOptimizerUserInterfaceItemProvider {
[2520]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() {
[2546]27      FileManager.New();
[2520]28    }
29  }
30}
Note: See TracBrowser for help on using the repository browser.