@@ -275,7 +275,8 @@ public class IShowPropertyImpl : IShowProperty, IPropertyEntry
275
275
/// Overrides the label text, which is normally retrieved from the <see cref="StringTable"/>
276
276
/// with the <see cref="resourceId"/>
277
277
/// </summary>
278
- protected string labelText ;
278
+ protected string labelTextInternal ;
279
+
279
280
/// <summary>
280
281
/// The resourceId specifies both the label text and the tooltip text. The label text
281
282
/// is loaded from the <see cref="StringTable"/> with the ID resourceId+".Label" the
@@ -423,19 +424,19 @@ public virtual void Select()
423
424
}
424
425
/// <summary>
425
426
/// Implementation of <see cref="IShowProperty.LabelText"/>, returns either
426
- /// <see cref="labelText "/> (if not null) or <see cref="StringTable.GetString"/>(resourceId+".Label")
427
- /// Whe set, <see cref="labelText "/> is set.
427
+ /// <see cref="labelTextInternal "/> (if not null) or <see cref="StringTable.GetString"/>(resourceId+".Label")
428
+ /// Whe set, <see cref="labelTextInternal "/> is set.
428
429
/// </summary>
429
430
public virtual string LabelText
430
431
{
431
432
get
432
433
{
433
- if ( labelText != null ) return labelText ;
434
+ if ( labelTextInternal != null ) return labelTextInternal ;
434
435
return StringTable . GetString ( resourceId + ".Label" ) ;
435
436
}
436
437
set
437
438
{
438
- labelText = value ;
439
+ labelTextInternal = value ;
439
440
}
440
441
}
441
442
/// <summary>
@@ -805,7 +806,7 @@ protected void PropertyEntryChangedState(StateChangedArgs args)
805
806
806
807
public virtual IPropertyEntry FindSubItem ( string helpResourceID )
807
808
{ // also check for LabeText, which would be the name of an item in the list
808
- if ( ResourceId == helpResourceID || ( string . IsNullOrEmpty ( ResourceId ) && labelText == helpResourceID ) ) return this ;
809
+ if ( ResourceId == helpResourceID || ( string . IsNullOrEmpty ( ResourceId ) && labelTextInternal == helpResourceID ) ) return this ;
809
810
for ( int i = 0 ; i < SubItems . Length ; i ++ )
810
811
{
811
812
IPropertyEntry found = SubItems [ i ] . FindSubItem ( helpResourceID ) ;
@@ -826,24 +827,24 @@ public class ShowPropertyGroup : PropertyEntryImpl
826
827
public ShowPropertyGroup ( string resourceId )
827
828
{
828
829
base . resourceId = resourceId ;
829
- subEntries = new IPropertyEntry [ 0 ] ;
830
+ subEntriesInternal = new IPropertyEntry [ 0 ] ;
830
831
}
831
- protected IPropertyEntry [ ] subEntries ;
832
+ protected IPropertyEntry [ ] subEntriesInternal ;
832
833
public void ClearSubEntries ( )
833
834
{
834
- subEntries = new IPropertyEntry [ 0 ] ;
835
+ subEntriesInternal = new IPropertyEntry [ 0 ] ;
835
836
}
836
837
public void AddSubEntry ( IPropertyEntry ToAdd )
837
838
{
838
- ArrayList al = new ArrayList ( subEntries ) ;
839
+ ArrayList al = new ArrayList ( subEntriesInternal ) ;
839
840
al . Add ( ToAdd ) ;
840
- subEntries = ( IPropertyEntry [ ] ) al . ToArray ( typeof ( IPropertyEntry ) ) ;
841
+ subEntriesInternal = ( IPropertyEntry [ ] ) al . ToArray ( typeof ( IPropertyEntry ) ) ;
841
842
}
842
843
public void AddSubEntries ( params IPropertyEntry [ ] ToAdd )
843
844
{
844
- ArrayList al = new ArrayList ( subEntries ) ;
845
+ ArrayList al = new ArrayList ( subEntriesInternal ) ;
845
846
al . AddRange ( ToAdd ) ;
846
- subEntries = ( IPropertyEntry [ ] ) al . ToArray ( typeof ( IPropertyEntry ) ) ;
847
+ subEntriesInternal = ( IPropertyEntry [ ] ) al . ToArray ( typeof ( IPropertyEntry ) ) ;
847
848
}
848
849
public override PropertyEntryType Flags => PropertyEntryType . GroupTitle | PropertyEntryType . HasSubEntries ;
849
850
/// <summary>
@@ -854,7 +855,7 @@ public override IPropertyEntry[] SubItems
854
855
{
855
856
get
856
857
{
857
- return subEntries ;
858
+ return subEntriesInternal ;
858
859
}
859
860
}
860
861
0 commit comments