Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/29/13 11:43:55 (11 years ago)
Author:
ascheibe
Message:

#2100 added a help button to View which opens and displays help texts if a help resource path is specified in the view attribute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Views/View.cs

    r9456 r9915  
    3838      else
    3939        this.Caption = "View";
     40
     41      if (ViewAttribute.HasHelpResourcePath((this.GetType())))
     42        helpLabel.Visible = true;
    4043    }
    4144
     
    261264        ((Control)this).ResumeRepaint(refresh);
    262265    }
     266
     267    protected void helpLabel_DoubleClick(object sender, EventArgs e) {
     268      using (InfoBox dialog = new InfoBox("Help for " + ViewAttribute.GetViewName(this.GetType()), ViewAttribute.GetHelpResourcePath(this.GetType()), this)) {
     269        dialog.ShowDialog(this);
     270      }
     271    }
    263272  }
    264273}
Note: See TracChangeset for help on using the changeset viewer.