コード例 #1
0
 internal void OnDatabaseLogin(DataConnectionBase sender, DatabaseLoginEventArgs e)
 {
     if (DatabaseLogin != null)
     {
         DatabaseLogin(sender, e);
     }
 }
コード例 #2
0
 internal void OnDatabaseLogin(DataConnectionBase sender, DatabaseLoginEventArgs e)
 {
   if (Config.DesignerSettings.ApplicationConnection != null && 
     sender.GetType() == Config.DesignerSettings.ApplicationConnectionType)
   {
     e.ConnectionString = Config.DesignerSettings.ApplicationConnection.ConnectionString;
   }
   
   if (DatabaseLogin != null)
     DatabaseLogin(sender, e);
 }