diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2021-07-04 15:25:08 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2021-07-04 15:25:08 +0300 |
| commit | 8a0b8f6abe3d143b43131a330e0ee39c2547ce8f (patch) | |
| tree | 7178cbe758b1adefb37c53be6839446e18d9d791 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs | |
| parent | b29f337cff7513e0fe0e4b98e6bc7970da89e837 (diff) | |
| download | Tango-8a0b8f6abe3d143b43131a330e0ee39c2547ce8f.tar.gz Tango-8a0b8f6abe3d143b43131a330e0ee39c2547ce8f.zip | |
After Virus
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs | 60 |
1 files changed, 37 insertions, 23 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs index b3e020c85..f44034a2f 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs @@ -101,26 +101,26 @@ namespace Tango.MachineStudio.RML.ViewModels set { _fiberSynths = value; RaisePropertyChangedAuto(); } } - private ObservableCollection<SpoolType> _spoolTypes; - public ObservableCollection<SpoolType> SpoolTypes - { - get { return _spoolTypes; } - set { _spoolTypes = value; RaisePropertyChangedAuto(); } - } + //private ObservableCollection<SpoolType> _spoolTypes; + //public ObservableCollection<SpoolType> SpoolTypes + //{ + // get { return _spoolTypes; } + // set { _spoolTypes = value; RaisePropertyChangedAuto(); } + //} - private ObservableCollection<BtsrApplicationType> _btsrApplicationTypes; - public ObservableCollection<BtsrApplicationType> BtsrApplicationTypes - { - get { return _btsrApplicationTypes; } - set { _btsrApplicationTypes = value; RaisePropertyChangedAuto(); } - } + //private ObservableCollection<BtsrApplicationType> _btsrApplicationTypes; + //public ObservableCollection<BtsrApplicationType> BtsrApplicationTypes + //{ + // get { return _btsrApplicationTypes; } + // set { _btsrApplicationTypes = value; RaisePropertyChangedAuto(); } + //} - private ObservableCollection<BtsrYarnType> _btsrYarnTypes; - public ObservableCollection<BtsrYarnType> BtsrYarnTypes - { - get { return _btsrYarnTypes; } - set { _btsrYarnTypes = value; RaisePropertyChangedAuto(); } - } + //private ObservableCollection<BtsrYarnType> _btsrYarnTypes; + //public ObservableCollection<BtsrYarnType> BtsrYarnTypes + //{ + // get { return _btsrYarnTypes; } + // set { _btsrYarnTypes = value; RaisePropertyChangedAuto(); } + //} private Rml _selectedRML; public Rml SelectedRML @@ -136,6 +136,17 @@ namespace Tango.MachineStudio.RML.ViewModels set { _activeRML = value; RaisePropertyChangedAuto(); } } + private List<String> _manufacturers; + + public List<String> Manufacturers + { + get { return _manufacturers; } + set { _manufacturers = value; + RaisePropertyChangedAuto(); + } + } + + private CalibrationDataViewVM _calibrationDataViewVM; public CalibrationDataViewVM CalibrationDataViewVM { @@ -312,7 +323,7 @@ namespace Tango.MachineStudio.RML.ViewModels x.Guid, x.FileName }).ToListAsync(); - + foreach (var rml in Rmls) { var cct = ccts.SingleOrDefault(x => x.Guid == rml.CctGuid); @@ -337,6 +348,8 @@ namespace Tango.MachineStudio.RML.ViewModels || r.Name.ToLower().Contains(RMLFilter.ToLower()); }; + + } } catch (Exception ex) @@ -373,7 +386,7 @@ namespace Tango.MachineStudio.RML.ViewModels }).ToObservableCollection(); CCTS.Where(x => String.IsNullOrWhiteSpace(x.FileName)).ToList().ForEach(x => x.FileName = x.Guid); - + LoadRmlProperties(); ActiveRML = await new RmlBuilder(_active_context) @@ -499,9 +512,10 @@ namespace Tango.MachineStudio.RML.ViewModels LinearMassDensityUnits = _active_context.LinearMassDensityUnits.ToObservableCollection(); FiberShapes = _active_context.FiberShapes.ToObservableCollection(); FiberSynths = _active_context.FiberSynths.ToObservableCollection(); - SpoolTypes = _active_context.SpoolTypes.ToObservableCollection(); - BtsrApplicationTypes = _active_context.BtsrApplicationTypes.ToObservableCollection(); - BtsrYarnTypes = _active_context.BtsrYarnTypes.ToObservableCollection(); + //SpoolTypes = _active_context.SpoolTypes.ToObservableCollection(); + //BtsrApplicationTypes = _active_context.BtsrApplicationTypes.ToObservableCollection(); + //BtsrYarnTypes = _active_context.BtsrYarnTypes.ToObservableCollection(); + Manufacturers = _active_context.YarnManufacturers.Select(x => x.Name).ToList(); } private async void AddNewRml() |
