40 lines
987 B
C#
40 lines
987 B
C#
using CPSO.Settings;
|
|
using DynamicTypeDescriptor;
|
|
|
|
namespace CPSO.Forms._61_Settings
|
|
{
|
|
public class ViewPythonSettings:IViewSettings, IReset
|
|
{
|
|
// Variables
|
|
private readonly PythonSettings _pythonSettings;
|
|
private DynamicCustomTypeDescriptor _dctd = null;
|
|
|
|
public string CondaPath
|
|
{
|
|
get => _pythonSettings.CondaPath;
|
|
set => _pythonSettings.CondaPath = value;
|
|
}
|
|
|
|
public string CondaEnvironment
|
|
{
|
|
get => _pythonSettings.CondaEnvironment;
|
|
set => _pythonSettings.CondaEnvironment = value;
|
|
}
|
|
|
|
public ViewPythonSettings(PythonSettings pythonSettings)
|
|
{
|
|
_pythonSettings = pythonSettings;
|
|
_dctd = ProviderInstaller.Install(this);
|
|
}
|
|
|
|
public ISettings GetBase()
|
|
{
|
|
return _pythonSettings;
|
|
}
|
|
|
|
public void Reset()
|
|
{
|
|
_pythonSettings.Reset();
|
|
}
|
|
}
|
|
} |