using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; 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; } this.DialogResult = DialogResult.OK; this.Close(); } private void buttonCancel_Click(object sender, EventArgs e) { this.Close(); } } }