// 复制并结束 void DoCopyMulti() { /* * MessageBox.Show(this, this.SubmitResult["subject"]); * if (ExitAfterCopy == true) * { * this.DialogResult = DialogResult.OK; * this.Close(); * } */ if (this.CopySubject != null) { CopySubjectEventArgs e = new CopySubjectEventArgs(); e.Subject = this.SubmitResult["subject"]; e.Single = false; this.CopySubject(this, e); } }
// 复制并结束 void DoCopyOne(string strParam) { strParam = HttpUtility.UrlDecode(strParam); SubmitResult.Add("subject", strParam); /* * MessageBox.Show(this, this.SubmitResult["subject"]); * if (ExitAfterCopy == true) { * this.DialogResult = DialogResult.OK; * this.Close(); * } */ if (this.CopySubject != null) { CopySubjectEventArgs e = new CopySubjectEventArgs(); e.Subject = strParam; e.Single = true; this.CopySubject(this, e); } }
// 复制并结束 void DoCopyOne(string strParam) { strParam = HttpUtility.UrlDecode(strParam); SubmitResult.Add("subject", strParam); /* MessageBox.Show(this, this.SubmitResult["subject"]); if (ExitAfterCopy == true) { this.DialogResult = DialogResult.OK; this.Close(); } */ if (this.CopySubject != null) { CopySubjectEventArgs e = new CopySubjectEventArgs(); e.Subject = strParam; e.Single = true; this.CopySubject(this, e); } }
// 复制并结束 void DoCopyMulti() { /* MessageBox.Show(this, this.SubmitResult["subject"]); if (ExitAfterCopy == true) { this.DialogResult = DialogResult.OK; this.Close(); } */ if (this.CopySubject != null) { CopySubjectEventArgs e = new CopySubjectEventArgs(); e.Subject = this.SubmitResult["subject"]; e.Single = false; this.CopySubject(this, e); } }
// 回调 复制主题词。复制到剪贴板 void CopySubject(object sender, CopySubjectEventArgs e) { Clipboard.SetDataObject(e.Subject); /* Class2SubjectDlg dlg = (Class2SubjectDlg)sender; dlg.DialogResult = DialogResult.OK; dlg.Close(); */ }