コード例 #1
0
 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)
         {
         }
     }
 }
コード例 #2
0
 private void LoadCNDTableFromFileOrCreateAndEmptyTableIfNotExists()
 {
     if (System.IO.File.Exists(GetFileTableName()))
     {
         this.LoadCNDTable();
     }
     else
     {
         this._CNDTable = new CNDTable();
     }
 }
コード例 #3
0
 internal CNDTableEnumerator(CNDTable table)
 {
     this._enumerator = table.DataTable.Rows.GetEnumerator();
 }