51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
using CaeGlobals;
|
|
using CPSO.Settings;
|
|
using DynamicTypeDescriptor;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
|
|
namespace CPSO.Forms._61_Settings
|
|
{
|
|
public class ViewCuttingForceSettings: IViewSettings, IReset
|
|
{
|
|
// Variables
|
|
private readonly CuttingForceSettings _cuttingForceSettings;
|
|
private DynamicCustomTypeDescriptor _dctd = null;
|
|
|
|
// Properties
|
|
[Category("Design")]
|
|
[OrderedDisplayName(0, 10, "符号大小")]
|
|
[Description("指定符号大小。")]
|
|
public int SymbolSize
|
|
{
|
|
get => _cuttingForceSettings.SymbolSize;
|
|
set => _cuttingForceSettings.SymbolSize = value;
|
|
}
|
|
|
|
[Category("Design")]
|
|
[OrderedDisplayName(0, 10, "符号颜色")]
|
|
[Description("指定符号颜色。")]
|
|
public Color SymbolColor
|
|
{
|
|
get => _cuttingForceSettings.SymbolColor;
|
|
set => _cuttingForceSettings.SymbolColor = value;
|
|
}
|
|
|
|
// Constructors
|
|
public ViewCuttingForceSettings(CuttingForceSettings cuttingForceSettings)
|
|
{
|
|
_cuttingForceSettings = cuttingForceSettings;
|
|
_dctd = ProviderInstaller.Install(this);
|
|
}
|
|
|
|
public ISettings GetBase()
|
|
{
|
|
return _cuttingForceSettings;
|
|
}
|
|
|
|
public void Reset()
|
|
{
|
|
_cuttingForceSettings.Reset();
|
|
}
|
|
}
|
|
} |