Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/10 03:25:33 (14 years ago)
Author:
mkommend
Message:

renamed MainForm.ShowViewsInViewHost and removed ShowInViewHost from ViewAttribute (ticket #972)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm/3.2/ViewAttribute.cs

    r3281 r3395  
    3131    public ViewAttribute(string name) {
    3232      this.name = name;
    33       this.showInViewHost = false;
    3433    }
    3534
     
    3837      get { return this.name; }
    3938      set { this.name = value; }
    40     }
    41 
    42     private bool showInViewHost;
    43     public bool ShowInViewHost {
    44       get { return this.showInViewHost; }
    45       set { this.showInViewHost = value; }
    4639    }
    4740
     
    5750      return viewType.Name;
    5851    }
    59 
    60     public static bool GetShowInViewHost(MemberInfo viewType) {
    61       ViewAttribute[] attributes = (ViewAttribute[])viewType.GetCustomAttributes(typeof(ViewAttribute), false);
    62       if (attributes.Length == 1)
    63         return attributes[0].showInViewHost;
    64       return false;
    65     }
    6652  }
    6753}
Note: See TracChangeset for help on using the changeset viewer.