Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.MainForm.WindowsForms;
|
---|
6 |
|
---|
7 | namespace 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.