Refactoring : TestBenchFramework --> TBF ver. 2.18.789
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
///
|
||||
/// 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;
|
||||
using TBF.Resources;
|
||||
|
||||
namespace TBF.Forms
|
||||
{
|
||||
public partial class ErrorDlg : Form
|
||||
{
|
||||
public DialogResult returnvalue;
|
||||
|
||||
public ErrorDlg()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public ErrorDlg(string ErrorDescription)
|
||||
: this()
|
||||
{
|
||||
textBoxMessage.Text = ErrorDescription;
|
||||
}
|
||||
|
||||
private void ErrorDlg_Load(object sender, EventArgs e)
|
||||
{
|
||||
Text = Strings.An_unhandled_error_occured;
|
||||
btnCancel.Text = Strings.CancelBtnText;
|
||||
btnRetry.Text = Strings.RetryBtnText;
|
||||
btnIgnore.Text = Strings.IgnoreBtnText;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user