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