ssteenkiste / nettiers

Automatically exported from code.google.com/p/nettiers
1 stars 0 forks source link

Removing event handler work incorrectly #352

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the file :
/WebLibrary/Data/ProviderDataSource.cst.

Class :
ProviderDataSource.

Region :
Events.

Events :
DeepLoading.
DeepLoaded.

The removing should be :
remove { ProviderView.DeepLoaded -= value; }
remove { ProviderView.DeepLoaded -= value; }

You have to replace Plus (+) with Minus (-)

Original issue reported on code.google.com by khvb...@gmail.com on 31 Oct 2010 at 12:08

GoogleCodeExporter commented 9 years ago
What line can this be found at?

Original comment by bniemyjski on 1 Nov 2010 at 2:22

GoogleCodeExporter commented 9 years ago
I think he means :

@@ -222,7 +222,7 @@
        public event ProviderDataSourceDeepLoadEventHandler DeepLoading
        {
            add { ProviderView.DeepLoading += value; }
-           remove { ProviderView.DeepLoaded += value; }
+           remove { ProviderView.DeepLoaded -= value; }
        }

        /// <summary>
@@ -231,7 +231,7 @@
        public event ProviderDataSourceDeepLoadEventHandler DeepLoaded
        {
            add { ProviderView.DeepLoaded += value; }
-           remove { ProviderView.DeepLoaded += value; }
+           remove { ProviderView.DeepLoaded -= value; }
        }

        #endregion

Original comment by vaibhavk...@gmail.com on 30 Nov 2010 at 9:14

GoogleCodeExporter commented 9 years ago
Hello,

This has been fixed in revision 858 of the templates. This can be downloaded 
here (http://community.codesmithtools.com/nightly/NetTiers/).

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 30 Nov 2010 at 10:51

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 7 Jan 2011 at 2:44