WIP PPG Data Pump

This commit is contained in:
Patrick Fic
2021-07-13 21:42:41 -07:00
parent 25b0b8ff4f
commit dc88d2baa3
11 changed files with 222 additions and 3 deletions

View File

@@ -167,6 +167,21 @@ namespace BodyshopPartner.ViewModels
}
}
private ICommand _browseForPaintScalePathCommand;
public ICommand BrowseForPaintScalePathCommand
{
get
{
if (_browseForPaintScalePathCommand == null)
{
_browseForPaintScalePathCommand = new RelayCommand(
p => true,
p => BrowseForPaintScalePath()
);
}
return _browseForPaintScalePathCommand;
}
}
private ICommand _installUpdatesCommand;
public ICommand InstallUpdatesCommand

View File

@@ -93,7 +93,7 @@ namespace BodyshopPartner.ViewModels
#if (!DEBUG)
#if (!DEBUG)
if (!Utils.AppMetaData.IsTest)
{
logger.Debug("Checking if updates are available.");
@@ -121,7 +121,7 @@ namespace BodyshopPartner.ViewModels
// }
//}
#endif
#endif
}
@@ -226,6 +226,21 @@ namespace BodyshopPartner.ViewModels
}
public void BrowseForPaintScalePath()
{
var dialog = new Ookii.Dialogs.Wpf.VistaFolderBrowserDialog();
dialog.SelectedPath = Properties.Settings.Default.PaintScalePath;
if (dialog.ShowDialog().GetValueOrDefault())
{
Properties.Settings.Default.PaintScalePath = dialog.SelectedPath;
Properties.Settings.Default.Save();
}
}
public void StopAllFolderMonitors()
{
IndeterminateLoading = true;