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

            Reload();
            lbdrivers.SelectedItem = driver;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public void RemoveDriver(DbDriverDefinition driver)
 {
     m_customDrivers.Drivers.Remove(driver);
 }