Files
wg_cpso/CPSO/Forms/61_Settings/ViewPythonSettings.cs
2026-03-25 18:20:24 +08:00

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();
}
}
}