Free cookie consent management tool by TermsFeed Policy Generator

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

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

first version of redesigned MainForm (ticket #857)

File size: 1.1 KB
RevLine 
[2249]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
[2458]5using HeuristicLab.MainForm.WindowsForms;
[2249]6
7namespace HeuristicLab.MainForm.Test {
[2696]8  public class OpenToolStripButtonItem : HeuristicLab.MainForm.WindowsForms.ToolBarItem, ITestUserInterfaceItemProvider {
9
10    public OpenToolStripButtonItem()
11      : base() {
12      System.Console.Out.Write("test");
13    }
[2249]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
[2458]26    public override void Execute() {
27      new OpenAction().Execute(MainFormManager.MainForm);
[2249]28    }
[2636]29
[2696]30    protected override void OnActiveViewChanged(object sender, EventArgs e) {
[2636]31      this.ToolStripItem.Enabled = !this.ToolStripItem.Enabled;
[2696]32      //MainFormManager.MainForm.Title =
33      //  MainFormManager.MainForm.ActiveView == null ? "null" : MainFormManager.MainForm.ActiveView.Caption;
[2636]34    }
[2249]35  }
36}
Note: See TracBrowser for help on using the repository browser.