void DatabaseManager_OnDatabaseHandlerLoaded(IDatabaseHandler source)
		{
			source.OnInitialise += new InterruptableEventHandler(DatabaseHandler_OnInitialise);
			foreach (Type t in Core.Modules.GetInterfaceImplementations(typeof(IForumDataHandler)))
			{
				IForumDataHandler dal = (IForumDataHandler)Activator.CreateInstance(t);
				if (dal.DatabaseHandlerType == source.GetType())
				{
					dataLayer = dal;
					break;
				}
			}
		}
Esempio n. 2
0
 void Database_OnDatabaseHandlerLoaded(IDatabaseHandler source)
 {
     source.OnInitialise += new InterruptableEventHandler(DatabaseHandler_OnInitialise);
     foreach (Type t in Core.Modules.GetInterfaceImplementations(typeof(IFileManagerDataLayer)))
     {
         IFileManagerDataLayer layer = (IFileManagerDataLayer)Activator.CreateInstance(t);
         if (layer.DatabaseHandlerType == source.GetType())
         {
             dataLayer = layer;
             break;
         }
     }
 }
Esempio n. 3
0
 void DatabaseManager_OnDatabaseHandlerLoaded(IDatabaseHandler source)
 {
     foreach (Type t in Core.Modules.GetInterfaceImplementations(typeof(IMerchantDataProvider)))
     {
         IMerchantDataProvider dp = (IMerchantDataProvider)Activator.CreateInstance(t);
         if (dp.DatabaseHandlerType == source.GetType())
         {
             dataProvider = dp;
             break;
         }
     }
     source.OnInitialise += new InterruptableEventHandler(Database_OnInitialise);
 }
 private void DatabaseManager_OnDatabaseHandlerLoaded(IDatabaseHandler source)
 {
     source.OnInitialise += new InterruptableEventHandler(source_OnInitialise);
     foreach (Type t in Core.Modules.GetInterfaceImplementations(typeof(T)))
     {
         T provider = (T)Activator.CreateInstance(t);
         if (provider.DatabaseHandlerType == source.GetType())
         {
             dataProvider = provider;
             break;
         }
     }
 }
		void Instance_OnDatabaseHandlerLoaded(IDatabaseHandler source)
		{
			source.OnInitialise += new InterruptableEventHandler(Database_OnInitialise);
			foreach (Type t in Core.Modules.GetInterfaceImplementations(typeof(ISecurityProviderDataLayer)))
			{
				ISecurityProviderDataLayer layer = (ISecurityProviderDataLayer)Activator.CreateInstance(t);
				if (layer.DatabaseHandlerType == source.GetType())
				{
					dataLayer = layer;
					break;
				}
			}
		}
Esempio n. 6
0
 void DatabaseManager_OnDatabaseHandlerLoaded(IDatabaseHandler source)
 {
     foreach (Type t in Core.Modules.GetInterfaceImplementations(typeof(IMerchantDataProvider)))
     {
         IMerchantDataProvider dp = (IMerchantDataProvider)Activator.CreateInstance(t);
         if (dp.DatabaseHandlerType == source.GetType())
         {
             dataProvider = dp;
             break;
         }
     }
     source.OnInitialise += new InterruptableEventHandler(Database_OnInitialise);
 }