using Core.Mes.Client.Comm.Tool; using CoreFS.CA06; using System; using System.Windows.Forms; namespace Core.StlMes.Client.Judge.Forms { public partial class PopupSubmit : FrmBase { private bool _mustInputMemo = false; private string _tips = ""; public PopupSubmit(string caption, bool mustInputMemo, string tips) { InitializeComponent(); this.Text = caption; _mustInputMemo = mustInputMemo; _tips = tips; } private void btnSubmit_Click(object sender, EventArgs e) { if (_mustInputMemo && txtAudit.Text.Trim() == "") { MessageUtil.ShowWarning(_tips); return; } this.DialogResult = DialogResult.Yes; } private void button1_Click(object sender, EventArgs e) { this.DialogResult = System.Windows.Forms.DialogResult.No; } } }