Example #1
0
        public static void RaiseConfigurationEvents(ConfigurationEventTypes eventType, List <ConfigRecord> records)
        {
            // Raise the item related event
            switch (eventType)
            {
            case ConfigurationEventTypes.Loaded:
                if (ConfigurationLoaded != null)
                {
                    ConfigurationLoaded(new ConfigurationEventArgs(eventType, records));
                }
                break;

            case ConfigurationEventTypes.Refreshed:
                if (ConfigurationRefreshed != null)
                {
                    ConfigurationRefreshed(new ConfigurationEventArgs(eventType, records));
                }
                break;
            }

            // Raise context level basket update event
            if (ConfigurationChanged != null)
            {
                ConfigurationChanged(new ConfigurationEventArgs(eventType, records));
            }
        }
 public ConfigurationEventArgs(ConfigurationEventTypes eventType, List <ConfigRecord> records)
 {
     EventType = eventType;
     Records   = records;
 }