// Load a model from a project file public void LoadTables(string filename) { SqlTableDefs = deserializeFromXmlString( File.ReadAllText(filename), typeof(SqlTableDefCollection)) as SqlTableDefCollection; Dirty = false; }
// Create new empty model public void NewTableDefs() { SqlTableDefs = new SqlTableDefCollection(); SqlTableDefs.Add(new SqlTableDef()); Dirty = false; }