using System; using System.Windows.Forms; namespace PcgDrawR { /// /// 图件旋转参数配置界面 /// public partial class FrmRotation : Form { /// /// 旋转参数 /// public RotationParameter RotationParameter { get; private set; } = new RotationParameter(); /// /// Initializes a new instance of the class. /// public FrmRotation() { InitializeComponent(); propertyGrid1.SelectedObject = RotationParameter; } private void buttonOK_Click(object sender, EventArgs e) { DialogResult = DialogResult.OK; } private void buttonCancel_Click(object sender, EventArgs e) { DialogResult = DialogResult.Cancel; } } }