public override void InitializeComponent(Interfaces.ICore core) { this.Behaviour = ComponentRegistry.Instance.GetComponent <LyricsBehaviour>(); this.Configuration = core.Components.Configuration; this.AutoLookup = this.Configuration.GetElement <BooleanConfigurationElement>( LyricsBehaviourConfiguration.SECTION, LyricsBehaviourConfiguration.AUTO_LOOKUP ); this.AutoLookupProvider = this.Configuration.GetElement <SelectionConfigurationElement>( LyricsBehaviourConfiguration.SECTION, LyricsBehaviourConfiguration.AUTO_LOOKUP_PROVIDER ); base.InitializeComponent(core); }
public GeocacheCollection(Framework.Interfaces.ICore core) { _core = core; if (_core != null && _core.Logs != null) { _core.Logs.ListDataChanged += new EventHandler(Logs_ListDataChanged); _core.Logs.LogAdded += new EventArguments.LogEventHandler(Logs_LogAdded); _core.Logs.LogRemoved += new EventArguments.LogEventHandler(Logs_LogRemoved); _core.UserWaypoints.ListDataChanged += new EventHandler(UserWaypoints_ListDataChanged); _core.UserWaypoints.UserWaypointAdded += new EventArguments.UserWaypointEventHandler(UserWaypoints_UserWaypointAdded); _core.UserWaypoints.UserWaypointRemoved += new EventArguments.UserWaypointEventHandler(UserWaypoints_UserWaypointRemoved); _core.Waypoints.ListDataChanged += new EventHandler(Waypoints_ListDataChanged); _core.Waypoints.WaypointAdded += new EventArguments.WaypointEventHandler(Waypoints_WaypointAdded); _core.Waypoints.WaypointRemoved += new EventArguments.WaypointEventHandler(Waypoints_WaypointRemoved); } }