@@ -154,6 +154,7 @@ public override void RecursivelyResolve(Dictionary<string, DataDefinition> local
154154 {
155155 var def = defs [ key ] as ReferenceDefinition ;
156156 Keys = def . Keys ;
157+ Definitions = def . Definitions ;
157158
158159 ListCollectionView lcv = new ListCollectionView ( Keys ) ;
159160 lcv . GroupDescriptions . Add ( new PropertyGroupDescription ( "Item2" ) ) ;
@@ -164,32 +165,34 @@ public override void RecursivelyResolve(Dictionary<string, DataDefinition> local
164165 Message . Show ( "Failed to find key " + DefKey + "!" , "Reference Resolve Failed" , "Ok" ) ;
165166 }
166167 }
167-
168- foreach ( var key in Keys )
168+ else
169169 {
170- Dictionary < string , DataDefinition > defs = null ;
171- if ( local . ContainsKey ( key . Item1 . ToLower ( ) ) ) defs = local ;
172- else if ( global . ContainsKey ( key . Item1 . ToLower ( ) ) ) defs = global ;
173-
174- if ( defs != null )
170+ foreach ( var key in Keys )
175171 {
176- Definitions [ key . Item1 ] = defs [ key . Item1 . ToLower ( ) ] ;
177- }
178- else if ( key . Item1 != "---" )
179- {
180- Message . Show ( "Failed to find key " + key . Item1 + "!" , "Reference Resolve Failed" , "Ok" ) ;
172+ Dictionary < string , DataDefinition > defs = null ;
173+ if ( local . ContainsKey ( key . Item1 . ToLower ( ) ) ) defs = local ;
174+ else if ( global . ContainsKey ( key . Item1 . ToLower ( ) ) ) defs = global ;
175+
176+ if ( defs != null )
177+ {
178+ Definitions [ key . Item1 ] = defs [ key . Item1 . ToLower ( ) ] ;
179+ }
180+ else if ( key . Item1 != "---" )
181+ {
182+ Message . Show ( "Failed to find key " + key . Item1 + "!" , "Reference Resolve Failed" , "Ok" ) ;
183+ }
181184 }
182- }
183185
184- if ( Keys . Count == 0 )
185- {
186- Keys . Add ( new Tuple < string , string > ( "---" , "---" ) ) ;
186+ if ( Keys . Count == 0 )
187+ {
188+ Keys . Add ( new Tuple < string , string > ( "---" , "---" ) ) ;
187189
188- ListCollectionView lcv = new ListCollectionView ( Keys ) ;
189- lcv . GroupDescriptions . Add ( new PropertyGroupDescription ( "Item2" ) ) ;
190- ItemsSource = lcv ;
190+ ListCollectionView lcv = new ListCollectionView ( Keys ) ;
191+ lcv . GroupDescriptions . Add ( new PropertyGroupDescription ( "Item2" ) ) ;
192+ ItemsSource = lcv ;
191193
192- Definitions [ "---" ] = new DummyDefinition ( ) ;
194+ Definitions [ "---" ] = new DummyDefinition ( ) ;
195+ }
193196 }
194197 }
195198
0 commit comments