File tree Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 58
58
<Grid >
59
59
<ComboBox ItemsSource =" {Binding ClassInstances}"
60
60
SelectedValue =" {Binding InterfaceInstancing, Mode=TwoWay}"
61
- Visibility =" {Binding IsClassInstancingMutable , Converter={StaticResource BoolToVisibility}}" >
61
+ Visibility =" {Binding CanChooseInterfaceInstancing , Converter={StaticResource BoolToVisibility}}" >
62
62
</ComboBox >
63
- <Label Visibility =" {Binding IsClassInstancingMutable, Converter={StaticResource BoolToHiddenVisibility}}"
64
- Content =" {Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=ExtractInterface_PublicInstancingMandatedByPublicClass}" />
63
+ <TextBlock Visibility =" {Binding CanChooseInterfaceInstancing, Converter={StaticResource BoolToHiddenVisibility}}"
64
+ Text =" {Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=ExtractInterface_PublicInstancingMandatedByPublicClass}"
65
+ TextWrapping =" Wrap" />
65
66
</Grid >
66
67
</GroupBox >
67
68
Original file line number Diff line number Diff line change @@ -61,13 +61,7 @@ public bool IsValidInterfaceName
61
61
}
62
62
}
63
63
64
- public bool IsClassInstancingMutable
65
- {
66
- get
67
- {
68
- return Model . ImplementingClassInstancing != ClassInstancing . Public ;
69
- }
70
- }
64
+ public bool CanChooseInterfaceInstancing => Model . ImplementingClassInstancing != ClassInstancing . Public ;
71
65
72
66
public IEnumerable < ClassInstancing > ClassInstances => Enum . GetValues ( typeof ( ClassInstancing ) ) . Cast < ClassInstancing > ( ) ;
73
67
Original file line number Diff line number Diff line change @@ -1829,6 +1829,8 @@ Import aborted.</value>
1829
1829
<value >Public</value >
1830
1830
</data >
1831
1831
<data name =" ExtractInterface_PublicInstancingMandatedByPublicClass" xml : space =" preserve" >
1832
- <value >'Public' will be chosen. For private instancing make implementing class private also.</value >
1832
+ <value >The implementing class is 'Public' mandating the interface be public as well.
1833
+ If you require a 'Private' interface, change the classes instancing to private as well.
1834
+ A private class can still implement a public interface.</value >
1833
1835
</data >
1834
1836
</root >
You can’t perform that action at this time.
0 commit comments