Ejemplo n.º 1
0
        private void LoadFolderData()
        {
            Working(true);

            //new Thread(() =>
            //{

            foreach (String file in Directory.GetFiles(SelectedFolder, "MAR*.tmp"))
            {
                PipeData p = PipeData.ParsePipeData(file);
                Disp(() =>
                {
                    PipeDataCollection.Add(p);
                    OnPropertyChanged("PipeDataCollection");
                });
            }

            Working(false);

            // });

            PipeDataCollectionOriginal = new ReadOnlyObservableCollection <PipeData>(PipeDataCollection);
        }