public bool CreateTable(Database.Database db, Table tbl) { string sql = tbl.ToDDL(); SQLInputDialog sid = new SQLInputDialog(sql, false); if (sid.ShowDialog() == DialogResult.OK) { db.ExecuteNonQuery(sid.SQL); try { populateTreeNodesFor(null, tbl); if (ObjectAdded != null) ObjectAdded(this, new DbObjectAddedArgs { Object = tbl }); } catch { } return true; } return false; }