diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-12-23 14:37:21 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-12-23 14:37:21 +0200 |
| commit | 673094ec9200776ff0867ee74be29dff3e275294 (patch) | |
| tree | f39936ff09a0e16cb5ac0f2d528a3e1eaf288517 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels | |
| parent | 7b6ec0a4e66a4402d5ee0beb4b34b18604e28cd8 (diff) | |
| download | Tango-673094ec9200776ff0867ee74be29dff3e275294.tar.gz Tango-673094ec9200776ff0867ee74be29dff3e275294.zip | |
Added basic support for csv job.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs index 64931cbe3..4ae98b1d0 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobsViewVM.cs @@ -738,6 +738,7 @@ namespace Tango.PPC.Jobs.ViewModels StorageProvider.RegisterFileHandler(ExplorerFileDefinition.Job.Extension, HandleJobFileLoaded); StorageProvider.RegisterFileHandler(ExplorerFileDefinition.ColorProfile.Extension, HandleColorProfileFileLoaded); StorageProvider.RegisterFileHandler(ExplorerFileDefinition.Pulse.Extension, HandlePulseFileLoaded); + StorageProvider.RegisterFileHandler(ExplorerFileDefinition.CsvFile.Extension, HandleCsvJobFileLoaded); //Load catalogs. using (ObservablesContext db = ObservablesContext.CreateDefault()) @@ -873,6 +874,26 @@ namespace Tango.PPC.Jobs.ViewModels #endregion + #region Handle CSV Job File Loading From Storage + + private async void HandleCsvJobFileLoaded(List<ExplorerFileItem> files) + { + var item = files.FirstOrDefault(); + if (item == null) return; + + var vm = new ImportCsvJobViewVM(); + vm.Name = Path.GetFileNameWithoutExtension(item.Name); + await vm.Init(); + await NotificationProvider.ShowDialog<ImportCsvJobViewVM>(vm); + + if (vm.DialogResult) + { + + } + } + + #endregion + #region Handle TCC File Loading From Storage private async void HandleColorProfileFileLoaded(List<ExplorerFileItem> tccFiles) |
