Refactoring : TestBenchFramework --> TBF ver. 2.18.789
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
///
|
||||
/// 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.Resources;
|
||||
|
||||
namespace TBF.Forms
|
||||
{
|
||||
public partial class NoBenchOrDatabaseDlg : Form
|
||||
{
|
||||
public string Message;
|
||||
public bool ShowRetry;
|
||||
|
||||
public NoBenchOrDatabaseDlg()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void NoDatabaseMsgDlg_Load(object sender, EventArgs e)
|
||||
{
|
||||
Text = Strings.Error;
|
||||
errorMessageLabel.Text = (Message != null) ? Message : Strings.Cannot_connect_to_the_database;
|
||||
exitButton.Text = Strings.ExitBtnText;
|
||||
retryButton.Text = Strings.RetryDatabaseText;
|
||||
configureButton.Text = Strings.ConfigureDatabaseText;
|
||||
if (!ShowRetry) retryButton.Enabled = false;
|
||||
}
|
||||
|
||||
private void exitButton_Click(object sender, EventArgs e) { DialogResult = DialogResult.Abort; } /// Exit
|
||||
private void configureButton_Click(object sender, EventArgs e) { DialogResult = DialogResult.OK; } /// Configure test benches
|
||||
private void retryButton_Click(object sender, EventArgs e) { DialogResult = DialogResult.Retry; } /// Retry connection to the database
|
||||
private void upgradeButton_Click(object sender, EventArgs e) { DialogResult = DialogResult.Yes; } /// Upgrade the database
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user