Beispiel #1
0
 public void Reload()
 {
     using (var reader = new DataStreamReader(SelectedPathname))
     {
         FileHeader = reader.Header;
         var data = new List <DataStreamRecord>();
         while (!reader.AtEOF)
         {
             try
             {
                 data.Add(reader.ReadRecord());
             }
             catch (Exception ex)
             {
                 Debug.WriteLine($"Reload Exception: {ex.Message}");
                 break;
             }
         }
         DataItemSource = data;
     }
 }