tbf/TestBenchFramework/Forms/ErrorDlg.cs
2015-04-15 20:32:56 +02:00

57 lines
1.3 KiB
C#

///
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
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();
}
}
}