/[RomCheater]/trunk/RomCheater.UserSettingsSupport/SettingSubscriber.cs
ViewVC logotype

Diff of /trunk/RomCheater.UserSettingsSupport/SettingSubscriber.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater.UserSettingsSupport/SettingsSubscriberBase.cs	2012/05/09 11:29:33	34
+++ trunk/RomCheater.UserSettingsSupport/SettingSubscriber.cs	2012/05/27 22:24:30	146
@@ -17,8 +17,9 @@
         }
         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)
             {

 

  ViewVC Help
Powered by ViewVC 1.1.22