2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
|
|
|
|
///
|
|
|
|
|
|
using System;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
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;
|
2015-10-07 19:33:37 +00:00
|
|
|
|
using TBF.Resources;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
namespace TBF.Forms
|
|
|
|
|
|
{
|
|
|
|
|
|
public partial class ErrorDlg : Form
|
|
|
|
|
|
{
|
2015-10-07 19:33:37 +00:00
|
|
|
|
public DialogResult returnvalue;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2015-10-07 19:33:37 +00:00
|
|
|
|
public ErrorDlg()
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-10-07 19:33:37 +00:00
|
|
|
|
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;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2014-07-28 07:54:35 +00:00
|
|
|
|
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();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|