Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/30/09 11:06:10 (15 years ago)
Author:
mkommend
Message:

implemented last changes in MainForm as discussed with SWA (ticket #771)

File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/Mainform refactoring/HeuristicLab.MainForm/3.2/DefaultViewAttribute.cs

    r2453 r2456  
    2626namespace HeuristicLab.MainForm {
    2727  [AttributeUsage(AttributeTargets.Class)]
    28   public class DefaultView : Attribute {
    29     public DefaultView() {
     28  public class DefaultViewAttribute : Attribute {
     29    public DefaultViewAttribute() {
     30    }
     31
     32    public static bool IsDefaultView(Type t) {
     33      object[] attributes = t.GetCustomAttributes(typeof(DefaultViewAttribute), false);
     34      return attributes != null && attributes.Length > 0;
    3035    }
    3136  }
Note: See TracChangeset for help on using the changeset viewer.