IO-233 2 Way Paint Scale.
This commit is contained in:
@@ -202,6 +202,22 @@ namespace BodyshopPartner.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private ICommand _browseForPaintScaleImportPathCommand;
|
||||
public ICommand BrowseForPaintScaleImportPathCommand
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_browseForPaintScaleImportPathCommand == null)
|
||||
{
|
||||
_browseForPaintScaleImportPathCommand = new RelayCommand(
|
||||
p => true,
|
||||
p => BrowseForPaintScaleImportPath()
|
||||
);
|
||||
}
|
||||
return _browseForPaintScaleImportPathCommand;
|
||||
}
|
||||
}
|
||||
|
||||
private ICommand _configurePaintScaleCommand;
|
||||
public ICommand ConfigurePaintScaleCommand
|
||||
{
|
||||
|
||||
@@ -67,6 +67,8 @@ namespace BodyshopPartner.ViewModels
|
||||
|
||||
MonitoringPaths.CollectionChanged += MonitoringPathsChanged;
|
||||
|
||||
Utils.PPGMixData.StartMixTimer();
|
||||
|
||||
_callingThread.ReportProgress(30);
|
||||
|
||||
_updateCheckTimer.Elapsed += _updateTimer_Elapsed;
|
||||
@@ -254,9 +256,20 @@ namespace BodyshopPartner.ViewModels
|
||||
Properties.Settings.Default.PaintScalePath = dialog.SelectedPath;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void BrowseForPaintScaleImportPath()
|
||||
{
|
||||
|
||||
var dialog = new Ookii.Dialogs.Wpf.VistaFolderBrowserDialog();
|
||||
dialog.SelectedPath = Properties.Settings.Default.PaintScaleImportPath;
|
||||
if (dialog.ShowDialog().GetValueOrDefault())
|
||||
{
|
||||
Properties.Settings.Default.PaintScaleImportPath = dialog.SelectedPath;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
}
|
||||
|
||||
public void BrowseForArmsPath()
|
||||
{
|
||||
|
||||
@@ -369,7 +382,7 @@ namespace BodyshopPartner.ViewModels
|
||||
public async Task TestGql()
|
||||
{
|
||||
|
||||
Utils.SquirrelAwareHelper.CopyScripts();
|
||||
Utils.PPGMixData.test();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user