Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.MainForm.Test/3.2/ButtonItems/OpenToolStripButtonItem.cs @ 2971

Last change on this file since 2971 was 2696, checked in by mkommend, 15 years ago

first version of redesigned MainForm (ticket #857)

File size: 1.1 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.MainForm.WindowsForms;
6
7namespace HeuristicLab.MainForm.Test {
8  public class OpenToolStripButtonItem : HeuristicLab.MainForm.WindowsForms.ToolBarItem, ITestUserInterfaceItemProvider {
9
10    public OpenToolStripButtonItem()
11      : base() {
12      System.Console.Out.Write("test");
13    }
14    public override int Position {
15      get { return 20; }
16    }
17
18    public override string Name {
19      get { return "Open"; }
20    }
21
22    public override System.Drawing.Image Image {
23      get { return HeuristicLab.Common.Resources.Resources.OpenIcon; }
24    }
25
26    public override void Execute() {
27      new OpenAction().Execute(MainFormManager.MainForm);
28    }
29
30    protected override void OnActiveViewChanged(object sender, EventArgs e) {
31      this.ToolStripItem.Enabled = !this.ToolStripItem.Enabled;
32      //MainFormManager.MainForm.Title =
33      //  MainFormManager.MainForm.ActiveView == null ? "null" : MainFormManager.MainForm.ActiveView.Caption;
34    }
35  }
36}
Note: See TracBrowser for help on using the repository browser.