private void toolStripButton1_Click(object sender, EventArgs e) { DbDriverDefinition driver = DbDriverManager.Instance.AddDriver(); Reload(); lbdrivers.SelectedItem = driver; }
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); }
public void RemoveDriver(DbDriverDefinition driver) { m_customDrivers.Drivers.Remove(driver); }