IO-233 2 Way Paint Scale.
This commit is contained in:
@@ -162,20 +162,23 @@
|
||||
<Button Command="{Binding BrowseForPaintScalePathCommand, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="8"
|
||||
Content="{x:Static p:Resources.Label_BrowsePaintScalePath}" />
|
||||
<Button Command="{Binding BrowseForPaintScaleImportPathCommand, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="8"
|
||||
Content="{x:Static p:Resources.Label_BrowsePaintScaleImportPath}" />
|
||||
<Button Command="{Binding BrowseForArmsPathPathCommand, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="8"
|
||||
Content="{x:Static p:Resources.Label_BrowseArmsExportPath}" />
|
||||
|
||||
|
||||
<Button Command="{Binding ConfigurePaintScaleCommand, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="8"
|
||||
Content="{x:Static p:Resources.Label_ConfigurePaintScale}" />
|
||||
|
||||
|
||||
<Button Command="{Binding ConfigureArmsExportCommand, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="8"
|
||||
Content="{x:Static p:Resources.Label_ConfigureArmsExport}" />
|
||||
<!--<Button Command="{Binding TestCommand}"
|
||||
Margin="8"
|
||||
Content="OE Test" />-->
|
||||
Content="Test Command" />-->
|
||||
<!--<Button Click="Button_Click"
|
||||
Margin="8"
|
||||
Content="Test" />
|
||||
@@ -262,6 +265,25 @@
|
||||
Path=PaintScalePath}"
|
||||
materialDesign:HintAssist.Hint="{x:Static p:Resources.Label_PaintScalePath}"
|
||||
TextChanged="PaintScalePath_TextChanged" />
|
||||
|
||||
<Grid DockPanel.Dock="Top"
|
||||
HorizontalAlignment="Stretch">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="3*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBox Grid.Column="0"
|
||||
Text="{Binding Source={x:Static properties:Settings.Default},
|
||||
Path=PaintScaleImportPath}"
|
||||
materialDesign:HintAssist.Hint="{x:Static p:Resources.Label_PaintScaleImportPath}"
|
||||
TextChanged="PaintScaleImportPath_TextChanged" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Source={x:Static properties:Settings.Default},
|
||||
Path=PaintScaleImportTimer}"
|
||||
materialDesign:HintAssist.Hint="{x:Static p:Resources.Label_PaintScaleImportTimer}"
|
||||
TextChanged="PaintScaleImportTimer_TextChanged" />
|
||||
</Grid>
|
||||
|
||||
<TextBox DockPanel.Dock="Top"
|
||||
Text="{Binding Source={x:Static properties:Settings.Default},
|
||||
Path=ArmsExportPath}"
|
||||
|
||||
@@ -49,6 +49,19 @@ namespace BodyshopPartner.Views
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
private void PaintScaleImportPath_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
Properties.Settings.Default.PaintScaleImportPath = ((System.Windows.Controls.TextBox)sender).Text;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
private void PaintScaleImportTimer_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
Properties.Settings.Default.PaintScaleImportTimer = ((System.Windows.Controls.TextBox)sender).Text;
|
||||
Properties.Settings.Default.Save();
|
||||
Utils.PPGMixData.StartMixTimer();
|
||||
}
|
||||
|
||||
private void ArmsExportPath_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
Properties.Settings.Default.ArmsExportPath = ((System.Windows.Controls.TextBox)sender).Text;
|
||||
|
||||
Reference in New Issue
Block a user