Exemplo n.º 1
0
        public static DataRow NewRow()
        {
            DataTable table = BookMoves.GetBookMovesTable();

            DataRow row = table.NewRow();

            table.Rows.Add(row);

            table.AcceptChanges();

            return(row);
        }
Exemplo n.º 2
0
        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);
            }
        }