Refactoring : TestBenchFramework --> TBF ver. 2.18.789

This commit is contained in:
Milan Hanajik
2018-01-29 09:48:01 +01:00
parent 06018303e7
commit 0d3ee53bd5
1300 changed files with 441 additions and 612 deletions
+59
View File
@@ -0,0 +1,59 @@
///
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
using System;
using System.Windows.Forms;
using TBF.Resources;
namespace TBF.Forms
{
public partial class TabNameDlg : Form
{
public string TabNameLabel;
public string TabName;
public bool IsVirtualBenchSeq;
public TabNameDlg()
{
InitializeComponent();
TabNameLabel = string.Empty;
TabName = string.Empty;
IsVirtualBenchSeq = false;
}
public TabNameDlg(bool nameOnly)
{
InitializeComponent();
TabNameLabel = string.Empty;
TabName = string.Empty;
IsVirtualBenchSeq = false;
if (nameOnly == true)
{
radioButton1.Visible = false;
radioButton2.Visible = false;
Height -= 50;
}
}
private void TabNameDlg_Load(object sender, EventArgs e)
{
Text = TabNameLabel;
tabNameTextBox.Text = TabName;
radioButton1.Text = Strings.Transition_sequence;
radioButton2.Text = Strings.Virtual_bench_sequence;
okButton.Text = Strings.OkBtnText;
}
private void okButton_Click(object sender, EventArgs e)
{
TabName = tabNameTextBox.Text;
IsVirtualBenchSeq = radioButton2.Checked;
DialogResult = DialogResult.OK;
Close();
}
}
}