WIP PPG Data Pump
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user