aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs
diff options
context:
space:
mode:
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.cs60
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()