Esempio n. 1
0
        public ViewModel(BaseImporter importer, Stream fileStream)
        {
            reporter.LabelChanged += OnChange;
            reporter.ProgressChanged += OnChange;

            Load(importer, fileStream);
        }
Esempio n. 2
0
 /// <summary>
 /// Adds the importer to the manager.
 /// </summary>
 /// <param name="importer">Importer.</param>
 public void AddImporter(BaseImporter importer)
 {
     importers.Add(importer);
 }
Esempio n. 3
0
 async void Load(BaseImporter importer, Stream fileStream)
 {
     Value = (await importer.ImportAsync(fileStream, reporter)).ToString();
 }
Esempio n. 4
0
 /// <summary>
 /// Adds the importer to the manager.
 /// </summary>
 /// <param name="importer">Importer.</param>
 public void AddImporter(BaseImporter importer)
 {
     importers.Add(importer);
 }