/[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 revision 34 by william, Wed May 9 11:29:33 2012 UTC trunk/RomCheater.UserSettingsSupport/SettingSubscriber.cs revision 146 by william, Sun May 27 22:24:30 2012 UTC
# Line 17  namespace RomCheater.UserSettingsSupport Line 17  namespace RomCheater.UserSettingsSupport
17          }          }
18          private static EventHandler<SettingsEventArgs> OnSubscribeAddedEvent;          private static EventHandler<SettingsEventArgs> OnSubscribeAddedEvent;
19          static SettingSubscriber() { OnSubscribeAddedEvent += new EventHandler<SettingsEventArgs>(OnSubscribeAdded); }          static SettingSubscriber() { OnSubscribeAddedEvent += new EventHandler<SettingsEventArgs>(OnSubscribeAdded); }
20          public static void AddSubscriber(System.Configuration.ApplicationSettingsBase settings) { if (OnSubscribeAddedEvent != null) { OnSubscribeAddedEvent(new SettingSubscriber(), new SettingsEventArgs(settings)); } }          public static void AddSubscriber(System.Configuration.ApplicationSettingsBase settings) { AddSubscriber(null, settings); }
21          private static void OnSubscribeAdded(object SubscribingAssembly, SettingsEventArgs e)          public static void AddSubscriber(object Subscriber, System.Configuration.ApplicationSettingsBase settings) { if (OnSubscribeAddedEvent != null) { OnSubscribeAddedEvent(Subscriber, new SettingsEventArgs(settings)); } }
22            private static void OnSubscribeAdded(object Subscriber, SettingsEventArgs e)
23          {          {
24              if (e.Settings != null)              if (e.Settings != null)
25              {              {

Legend:
Removed from v.34  
changed lines
  Added in v.146

  ViewVC Help
Powered by ViewVC 1.1.22