Example #1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            DbDriverDefinition driver = DbDriverManager.Instance.AddDriver();

            Reload();
            lbdrivers.SelectedItem = driver;
        }
Example #2
0
        public DbDriverDefinition AddDriver()
        {
            DbDriverDefinition res = new DbDriverDefinition();

            m_customDrivers.Drivers.Add(res);
            res.Name          = "[new driver]";
            res.InvariantName = "System.Data.MyNewDriver";
            res.IsSystem      = false;
            return(res);
        }
Example #3
0
 public void RemoveDriver(DbDriverDefinition driver)
 {
     m_customDrivers.Drivers.Remove(driver);
 }