]> O.S.I.I.S - jp/crow.git/commitdiff
resolveBinding when datasource change event if dataSource is null
authorjp <jp_bruyere@hotmail.com>
Sat, 27 Feb 2016 11:31:51 +0000 (12:31 +0100)
committerjp <jp_bruyere@hotmail.com>
Sat, 27 Feb 2016 11:31:51 +0000 (12:31 +0100)
src/GraphicObjects/GraphicObject.cs

index 503a250ba4ef3ff372a38aa544ee06c7be1636b2..894d227028413b6cb4f1d980c1123e3d7675db5d 100644 (file)
@@ -426,13 +426,11 @@ namespace Crow
                                if (dataSource == value)
                                        return;
 
-                               if (dataSource != null)
-                                       this.ClearBinding ();
+                               this.ClearBinding ();
                                
                                dataSource = value;
 
-                               if (dataSource != null)
-                                       this.ResolveBindings();
+                               this.ResolveBindings();
 
                                NotifyValueChanged ("DataSource", dataSource);
                        }