private void LoadCNDTable() { this._CNDTable = null; System.IO.FileStream fs = null; try { fs = new System.IO.FileStream(GetFileTableName(), System.IO.FileMode.Open); System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); this._CNDTable = (CNDTable)(formatter.Deserialize(fs)); } catch (Exception) { if (this._CNDTable == null) { this._CNDTable = new CNDTable(); } } finally { try { fs.Close(); } catch (Exception) { } } }
private void LoadCNDTableFromFileOrCreateAndEmptyTableIfNotExists() { if (System.IO.File.Exists(GetFileTableName())) { this.LoadCNDTable(); } else { this._CNDTable = new CNDTable(); } }
internal CNDTableEnumerator(CNDTable table) { this._enumerator = table.DataTable.Rows.GetEnumerator(); }