public static DataRow NewRow() { DataTable table = BookMoves.GetBookMovesTable(); DataRow row = table.NewRow(); table.Rows.Add(row); table.AcceptChanges(); return(row); }
public void AppendFile(string filePath) { if (File.Exists(filePath)) { DataTable tempBookData = BookMoves.GetBookMovesTable(); MemoryStream memoryStream = InfinityStreamsManager.ReadStreamFromFile(filePath); tempBookData.ReadXml(memoryStream); memoryStream.Close(); BookMoves.DataTable.Merge(tempBookData); } }