aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-03-04 15:49:59 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-03-04 15:49:59 +0200
commit1746d2c7f601f44c23399aa6d19661fb7ff937ec (patch)
tree829c2a33a7b5c67696c683df5a11780fae620fae /Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings
parent56b984bf7c4785cd0bcfd45a174ea802c6d0d471 (diff)
downloadTango-1746d2c7f601f44c23399aa6d19661fb7ff937ec.tar.gz
Tango-1746d2c7f601f44c23399aa6d19661fb7ff937ec.zip
Fixed several issues with PPC.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs6
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml4
2 files changed, 5 insertions, 5 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
index 7896367ec..246b86469 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/ViewModels/MainViewVM.cs
@@ -119,7 +119,7 @@ namespace Tango.PPC.MachineSettings.ViewModels
{
Machine.SupportedJobTypes = SelectedJobTypes.SynchedSource.ToList();
Machine.SupportedColorSpaces = SelectedColorSpaces.SynchedSource.ToList();
- Machine.ShallowCopyTo(MachineProvider.Machine);
+ Machine.MapPrimitivesWithStringsNoNullsTo(MachineProvider.Machine);
Settings.EnableHotSpot = EnableHotSpot;
Settings.HotSpotPassword = HotSpotPassword;
@@ -149,8 +149,8 @@ namespace Tango.PPC.MachineSettings.ViewModels
{
base.OnNavigatedTo();
- Machine = new Machine();
- MachineProvider.Machine.ShallowCopyTo(Machine);
+ Machine = MachineProvider.Machine.ShallowClone();
+
RaisePropertyChanged(nameof(Machine));
_enableHotSpot = HotSpotProvider.IsEnabled;
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml
index d1de12664..8ba06eb43 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml
@@ -119,8 +119,8 @@
</ItemsControl.ItemTemplate>
</ItemsControl>
- <TextBlock VerticalAlignment="Bottom">Default Media</TextBlock>
- <touch:TouchComboBox HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="200" ItemsSource="{Binding Adapter.Rmls}" SelectedItem="{Binding Machine.DefaultRml}" DisplayMemberPath="Name"></touch:TouchComboBox>
+ <TextBlock VerticalAlignment="Bottom">Default Thread Type</TextBlock>
+ <touch:TouchComboBox HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="200" ItemsSource="{Binding Adapter.Rmls}" SelectedItem="{Binding Machine.DefaultRml}" DisplayMemberPath="Name" ValuePath="Guid"></touch:TouchComboBox>
<!--<TextBlock VerticalAlignment="Bottom">Default Spool</TextBlock>
<touch:TouchComboBox HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="200" ItemsSource="{Binding Adapter.SpoolTypes}" SelectedItem="{Binding Machine.DefaultSpoolType}" DisplayMemberPath="Name"></touch:TouchComboBox>-->