private void ResetOthersComponent() { // sysConnectionStringHandler this.sysConnectionStringHandler.LoadProgressEvent -= this.systemConnectionStringHandler_ProgressUpdateEvent; this.sysConnectionStringHandler.LoadCompletedEvent -= this.systemConnectionStringHandler_LoadCompletedEvent; this.sysConnectionStringHandler = null; // connectionStringHandler this.connectionStringHandler.LoadProgressEvent -= this.connectionStringHandler_LoadProgressEvent; this.connectionStringHandler.LoadCompletedEvent -= this.connectionStringHandler_LoadCompletedEvent; this.connectionStringHandler = null; // dataStoreConfigurationHandler this.dataStoreConfigurationHandler.LoadProgressEvent -= this.dataStoreConfigurationHandler_LoadProgressEvent; this.dataStoreConfigurationHandler.LoadCompletedEvent -= this.dataStoreConfigurationHandler_LoadCompletedEvent; this.dataStoreConfigurationHandler = null; }
private void InitializeOthersComponent() { this.sysConnectionStringHandler = new LinqXml.SystemConnectionStringHandler(this.components); this.connectionStringHandler = new LinqXml.ConnectionStringHandler(this.components); this.dataStoreConfigurationHandler = new LinqXml.DataStoreConfigurationHandler(this.components); // // sysConnectionStringHandler // this.sysConnectionStringHandler.LoadProgressEvent += new LinqXml.SystemConnectionStringHandler.LoadProgressEventHandler(this.systemConnectionStringHandler_ProgressUpdateEvent); this.sysConnectionStringHandler.LoadCompletedEvent += new LinqXml.SystemConnectionStringHandler.LoadCompletedEventHandler(this.systemConnectionStringHandler_LoadCompletedEvent); // // connectionStringHandler // this.connectionStringHandler.LoadProgressEvent += new LinqXml.ConnectionStringHandler.LoadProgressEventHandler(this.connectionStringHandler_LoadProgressEvent); this.connectionStringHandler.LoadCompletedEvent += new LinqXml.ConnectionStringHandler.LoadCompletedEventHandler(this.connectionStringHandler_LoadCompletedEvent); // // dataStoreConfigurationHandler // this.dataStoreConfigurationHandler.LoadProgressEvent += new LinqXml.DataStoreConfigurationHandler.LoadProgressEventHandler(this.dataStoreConfigurationHandler_LoadProgressEvent); this.dataStoreConfigurationHandler.LoadCompletedEvent += new LinqXml.DataStoreConfigurationHandler.LoadCompletedEventHandler(this.dataStoreConfigurationHandler_LoadCompletedEvent); }