From 12d0aa0ab91836000b5d9ef9ca362f49c9563009 Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Fri, 15 Feb 2019 11:10:14 +0000 Subject: [PATCH] attempt to fix build error --- .../Implementation/CollectionControlDialog.xaml.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml.cs index db766804..07277328 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml.cs @@ -117,7 +117,7 @@ namespace Xceed.Wpf.Toolkit { get { - return _collectionControl; + return this._collectionControl; } } @@ -175,14 +175,14 @@ namespace Xceed.Wpf.Toolkit } } - _collectionControl.PersistChanges(); + this._collectionControl.PersistChanges(); this.DialogResult = true; this.Close(); } private void CancelButton_Click( object sender, RoutedEventArgs e ) { - _collectionControl.PersistChanges( originalData ); + this._collectionControl.PersistChanges( originalData ); this.DialogResult = false; this.Close(); } @@ -329,7 +329,7 @@ namespace Xceed.Wpf.Toolkit private bool AreDictionaryKeysValid() { - var keys = _collectionControl.Items.Select( x => + var keys = this._collectionControl.Items.Select( x => { var keyType = x.GetType().GetProperty( "Key" ); if( keyType != null ) @@ -339,7 +339,7 @@ namespace Xceed.Wpf.Toolkit return null; } ); - return ( keys.Distinct().Count() == _collectionControl.Items.Count ) + return ( keys.Distinct().Count() == this._collectionControl.Items.Count ) && keys.All( x => x != null ); }