Refactoring : TestBenchFramework --> TBF ver. 2.18.789
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user