using System; namespace TProduct.WinFrmUI { public partial class SetCurveWidthDlg : DevExpress.XtraEditors.XtraForm { public SetCurveWidthDlg() { InitializeComponent(); spinEdit1.Properties.IsFloatValue = false; spinEdit1.Properties.MinValue = 1; spinEdit1.Properties.MaxValue = 5; } public int CurveWidth { get { return int.Parse(spinEdit1.Value.ToString()); } set { spinEdit1.Value = value; } } private void simpleButton2_Click(object sender, EventArgs e) { this.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.Close(); } private void simpleButton1_Click(object sender, EventArgs e) { this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); } private void SetContentDlg_Load(object sender, EventArgs e) { } } }