using System; using System.Windows.Forms; using DevComponents.DotNetBar; namespace Cyberpipe { public partial class FrmMarker : Office2007Form { public string markerContent = ""; public FrmMarker() { InitializeComponent(); } private void buttonOK_Click(object sender, EventArgs e) { markerContent = textBoxMarkerContent.Text.Trim(); if (markerContent == "") { MessageBox.Show("标注内容不能为空!","提示"); return; } DialogResult = DialogResult.OK; Close(); } private void buttonCancel_Click(object sender, EventArgs e) { Close(); } } }