- Timestamp:
- 07/18/14 12:35:00 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll11 10 HeuristicLab 3.3.5.1.ReSharper.user 12 11 HeuristicLab 3.3.6.0.ReSharper.user 13 12 HeuristicLab.4.5.resharper.user 14 13 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development16 14 HeuristicLab.resharper.user 17 15 ProtoGen.exe … … 19 17 _ReSharper.HeuristicLab 20 18 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests22 19 _ReSharper.HeuristicLab.ExtLibs 23 20 bin 24 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.MainForm/3.3/ViewAttribute.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 28 28 public ViewAttribute(string name) { 29 29 this.name = name; 30 this.helpResourcePath = string.Empty;31 }32 33 public ViewAttribute(string name, string helpResourcePath) {34 this.name = name;35 this.helpResourcePath = helpResourcePath;36 30 } 37 31 … … 40 34 get { return this.name; } 41 35 set { this.name = value; } 42 }43 44 private string helpResourcePath;45 public string HelpResourcePath {46 get { return this.helpResourcePath; }47 set { this.helpResourcePath = value; }48 36 } 49 37 … … 59 47 return viewType.Name; 60 48 } 61 62 public static string GetHelpResourcePath(MemberInfo viewType) {63 ViewAttribute[] attributes = (ViewAttribute[])viewType.GetCustomAttributes(typeof(ViewAttribute), false);64 if (attributes.Length == 1)65 return attributes[0].helpResourcePath;66 return string.Empty;67 }68 69 public static bool HasHelpResourcePath(MemberInfo viewType) {70 ViewAttribute[] attributes = (ViewAttribute[])viewType.GetCustomAttributes(typeof(ViewAttribute), false);71 if (attributes.Length == 1)72 return attributes[0].helpResourcePath != string.Empty;73 return false;74 }75 49 } 76 50 }
Note: See TracChangeset
for help on using the changeset viewer.