IO-70 OEC Connection Settings
This commit is contained in:
@@ -169,6 +169,23 @@ namespace BodyshopPartner.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private ICommand _browseForEmsFolderCommand;
|
||||
public ICommand BrowseForEmsFolderCommand
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_browseForEmsFolderCommand == null)
|
||||
{
|
||||
_browseForEmsFolderCommand = new RelayCommand(
|
||||
p => true,
|
||||
p => BrowseForEmsFolder()
|
||||
);
|
||||
}
|
||||
return _browseForEmsFolderCommand;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ICommand _browseForPaintScalePathCommand;
|
||||
public ICommand BrowseForPaintScalePathCommand
|
||||
{
|
||||
|
||||
@@ -229,6 +229,19 @@ namespace BodyshopPartner.ViewModels
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void BrowseForEmsFolder()
|
||||
{
|
||||
var dialog = new Ookii.Dialogs.Wpf.VistaFolderBrowserDialog();
|
||||
dialog.SelectedPath = Properties.Settings.Default.EmsExportPath;
|
||||
if (dialog.ShowDialog().GetValueOrDefault())
|
||||
{
|
||||
Properties.Settings.Default.EmsExportPath = dialog.SelectedPath;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void BrowseForPaintScalePath()
|
||||
|
||||
Reference in New Issue
Block a user