ARMS Uploader
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user