public void Paste(string moves) { Flags.IsExamineMode = true; DataTable dt = UData.LoadDataTable(Notations.Game.Moves.DataTable.Clone(), moves); Paste(dt); Flags.IsExamineMode = false; }
public MoveLog(MoveComments moveComments) { Game = moveComments.Move.Game; DataTable = GetMoveLogTable(); this.MoveComments = moveComments; UData.LoadDataTable(DataTable, this.MoveComments[MoveCommentTypeE.MoveLog]); }
private void ProcessData(string str, UserSession us) { if (UData.IsValidXml(str)) { DataTable dt = UData.LoadDataTable(UData.LoadXsdText(str), str); Kv kv = new Kv(dt); Ap.MsgQueue.Enqueue(kv); } }
public void Load(string kvXml) { if (String.IsNullOrEmpty(kvXml)) { CreateKv(); } else { DataTable = UData.LoadDataTable(kvXml, kvXml); } }
public void Union(string moves) { if (moves == "") { return; } DataTable dt = UData.LoadDataTable(Notations.Game.Moves.DataTable.Clone(), moves); AddMoves(dt); }
public static DataTable GetDataTable(DataTable table, string key) { try { string s = Get(table, key); return(UData.LoadDataTable(s)); } catch { return(null); } }
public static DataTable LoadDataTable5(string xmlPath) { DataTable table = null; try { if (UFile.Exists(xmlPath)) { string content = InfinityStreamsManager.ReadFromFile(xmlPath); table = UData.LoadDataTable(content, content); } } catch (Exception ex) { throw ex; } return(table); }
public void Union(string moves) { if (moves == "") { return; } DataTable dt = UData.LoadDataTable(Notations.Game.Moves.DataTable.Clone(), moves); if (dt.Rows.Count != 1) { return; } Move m = new Move(dt.Rows[0]); m.Game = this; AddMove(m.From, m.To, m.Piece, m.Fen, m, true); //MoveTo(MoveToE.Last); DoEngineMoveIfNeeded(); }
public Moves(string movesDataTable) { DataTable = GetMovesTable(); UData.LoadDataTable(DataTable, movesDataTable); }
public static DataTable UnzipDataTable(string xsd, string dt) { return(UData.LoadDataTable(xsd, UZip.Unzip(dt))); }
public void LoadXml(string dt) { UData.LoadDataTable(this.DataTable, UZip.Unzip(dt)); }
public void Paste(string moves) { DataTable dt = UData.LoadDataTable(Notations.Game.Moves.DataTable.Clone(), moves); Paste(dt); }