ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.UserSettingsSupport/SettingSubscriber.cs
(Generate patch)

Comparing:
trunk/RomCheater.UserSettingsSupport/SettingsSubscriberBase.cs (file contents), Revision 141 by william, Wed May 9 11:29:33 2012 UTC vs.
trunk/RomCheater.UserSettingsSupport/SettingSubscriber.cs (file contents), Revision 146 by william, Sun May 27 22:24:30 2012 UTC

--- trunk/RomCheater.UserSettingsSupport/SettingsSubscriberBase.cs	2012/05/11 11:31:06	141
+++ trunk/RomCheater.UserSettingsSupport/SettingSubscriber.cs	2012/05/27 22:24:30	146
@@ -17,8 +17,9 @@ namespace RomCheater.UserSettingsSupport
         }
         private static EventHandler<SettingsEventArgs> OnSubscribeAddedEvent;
         static SettingSubscriber() { OnSubscribeAddedEvent += new EventHandler<SettingsEventArgs>(OnSubscribeAdded); }
-        public static void AddSubscriber(System.Configuration.ApplicationSettingsBase settings) { if (OnSubscribeAddedEvent != null) { OnSubscribeAddedEvent(new SettingSubscriber(), new SettingsEventArgs(settings)); } }
-        private static void OnSubscribeAdded(object SubscribingAssembly, SettingsEventArgs e)
+        public static void AddSubscriber(System.Configuration.ApplicationSettingsBase settings) { AddSubscriber(null, settings); }
+        public static void AddSubscriber(object Subscriber, System.Configuration.ApplicationSettingsBase settings) { if (OnSubscribeAddedEvent != null) { OnSubscribeAddedEvent(Subscriber, new SettingsEventArgs(settings)); } }
+        private static void OnSubscribeAdded(object Subscriber, SettingsEventArgs e)
         {
             if (e.Settings != null)
             {