using System.ComponentModel;
#if WEB_SERVICE
#else
using System.Drawing.Design;
#endif
namespace GeoSigma.SigmaDrawerStyle
{
public class SaveAsSymbolProperty
{
private string symbolFileName;
private string symbolName;
private CoordinateRange coordRange;
private IRectangularCSGridPropertyChange iChange;
///
/// Initializes a new instance of the class.
///
///
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符号库文件名")]
#if WEB_SERVICE
#else
[Editor("UCDraw.Editor.OpenFileEditor, UCDraw", typeof(UITypeEditor))]
#endif
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();
}
}
}
}