42 lines
1.5 KiB
C#
42 lines
1.5 KiB
C#
///
|
|
/// Copyright (c) 2013-2015 Senus Slovensko a.s.
|
|
///
|
|
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.UI.Shared
|
|
{
|
|
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
|
|
}
|
|
}
|