ARMS Uploader

This commit is contained in:
Patrick Fic
2022-02-07 13:31:51 -08:00
parent 1221f35162
commit c936d354b2
16 changed files with 440 additions and 175 deletions

View File

@@ -218,6 +218,38 @@ namespace BodyshopPartner.ViewModels
}
}
private ICommand _browseForArmsPathPathCommand;
public ICommand BrowseForArmsPathPathCommand
{
get
{
if (_browseForArmsPathPathCommand == null)
{
_browseForArmsPathPathCommand = new RelayCommand(
p => true,
p => BrowseForArmsPath()
);
}
return _browseForArmsPathPathCommand;
}
}
private ICommand _configureArmsExportCommand;
public ICommand ConfigureArmsExportCommand
{
get
{
if (_configureArmsExportCommand == null)
{
_configureArmsExportCommand = new RelayCommand(
p => true,
p => Utils.ScheduledTaskConfig.RegisterArms()
); ;
}
return _configureArmsExportCommand;
}
}
private ICommand _installUpdatesCommand;
public ICommand InstallUpdatesCommand
{

View File

@@ -256,6 +256,19 @@ namespace BodyshopPartner.ViewModels
}
}
public void BrowseForArmsPath()
{
var dialog = new Ookii.Dialogs.Wpf.VistaFolderBrowserDialog();
dialog.SelectedPath = Properties.Settings.Default.ArmsExportPath;
if (dialog.ShowDialog().GetValueOrDefault())
{
Properties.Settings.Default.ArmsExportPath = dialog.SelectedPath;
Properties.Settings.Default.Save();
}
}
public void StopAllFolderMonitors()
@@ -362,7 +375,8 @@ namespace BodyshopPartner.ViewModels
public void ConfigurePaintScale()
{
Utils.PaintScaleConfig.RegisterScheduledTask();
Utils.ScheduledTaskConfig.RegisterPaintScale();
}
}
}