tbf/TestBenchFramework/Forms/ErrorDlg.cs
2014-07-28 09:56:40 +02:00

54 lines
1.2 KiB
C#

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();
}
}
}