using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using TBF; using TBF.ErrorHandler; namespace TBF.Forms { public partial class ErrorDlg : Form { public ErrorDlg() { InitializeComponent(); } public DialogResult returnvalue; public ErrorDlg(string ErrorDescription) { InitializeComponent(); textBoxMessage.Text = ErrorDescription; } private void btnOk_Click(object sender, EventArgs e) { returnvalue = DialogResult.OK; this.Close(); } private void btnIgnore_Click(object sender, EventArgs e) { returnvalue = DialogResult.Ignore; this.Close(); } private void btnCancel_Click(object sender, EventArgs e) { returnvalue = DialogResult.Cancel; this.Close(); } private void btnRetry_Click(object sender, EventArgs e) { returnvalue = DialogResult.Retry; this.Close(); } } }