You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/UCDraw/SigmaDrawerStyle/SaveAsSymbolProperty.cs

52 lines
1.5 KiB
C#

1 month ago
using System.ComponentModel;
#if WEB_SERVICE
#else
1 month ago
using System.Drawing.Design;
1 month ago
#endif
1 month ago
namespace GeoSigma.SigmaDrawerStyle
{
public class SaveAsSymbolProperty
{
private string symbolFileName;
private string symbolName;
private CoordinateRange coordRange;
private IRectangularCSGridPropertyChange iChange;
/// <summary>
/// Initializes a new instance of the <see cref="SaveAsSymbolProperty"/> class.
/// </summary>
/// <param name="iChange"></param>
public SaveAsSymbolProperty(IRectangularCSGridPropertyChange iChange)
{
this.iChange = iChange;
coordRange = new CoordinateRange(-0.5, 0.5, 0.5, -0.5, iChange);
}
[DisplayName("\t\t\t\t\t\t符号库文件名")]
1 month ago
#if WEB_SERVICE
#else
1 month ago
[Editor("UCDraw.Editor.OpenFileEditor, UCDraw", typeof(UITypeEditor))]
1 month ago
#endif
1 month ago
public string SymbolFileName { get => symbolFileName; set => symbolFileName = value; }
[DisplayName("\t\t\t\t\t\t符号名")]
public string SymbolName { get => symbolName; set => symbolName = value; }
[DisplayName("\t\t\t\t\t\t符号标准范围")]
[TypeConverter(typeof(ExpandableObjectConverter))]
public CoordinateRange SymbolStandardRange
{
get
{
return coordRange;
}
set
{
coordRange = value;
iChange.RCSGridPropertyChange();
}
}
}
}