Common.Data --> TBF.Data and TBF.DB
This commit is contained in:
@@ -44,9 +44,9 @@ namespace TBF.Rig.DataEntry.Combined
|
||||
/// Default constructor - Default number of compound water meters
|
||||
/// </summary>
|
||||
public CycleBeginningForm()
|
||||
: this (Common.Data.CompoundWMsCount, false)
|
||||
: this (TBF.Data.CompoundWMsCount, false)
|
||||
{
|
||||
this.WaterMetersCount = Common.Data.CompoundWMsCount;
|
||||
this.WaterMetersCount = TBF.Data.CompoundWMsCount;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -35,10 +35,10 @@ namespace TBF.Rig.DataEntry.Combined
|
||||
InitializeComponent();
|
||||
ControlBox = false;
|
||||
|
||||
MainStateText = new string[Common.Data.CompoundWMsCount];
|
||||
AuxStateText = new string[Common.Data.CompoundWMsCount];
|
||||
QRise = new float[Common.Data.CompoundWMsCount];
|
||||
QFall = new float[Common.Data.CompoundWMsCount];
|
||||
MainStateText = new string[TBF.Data.CompoundWMsCount];
|
||||
AuxStateText = new string[TBF.Data.CompoundWMsCount];
|
||||
QRise = new float[TBF.Data.CompoundWMsCount];
|
||||
QFall = new float[TBF.Data.CompoundWMsCount];
|
||||
completed = false;
|
||||
StartForceCloseHandler();
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace TBF.Rig.DataEntry.Combined
|
||||
qRise1TextBox.Text = Utils.DoubleToStr(Sequences.SequenceBase.Qrise, 3);
|
||||
qFall1TextBox.Text = Utils.DoubleToStr(Sequences.SequenceBase.Qfall, 3);
|
||||
|
||||
if (Common.Data.CompoundWMsCount >= 2)
|
||||
if (TBF.Data.CompoundWMsCount >= 2)
|
||||
{
|
||||
qRise2TextBox.Text = Utils.DoubleToStr(Sequences.SequenceBase.Qrise, 3);
|
||||
qFall2TextBox.Text = Utils.DoubleToStr(Sequences.SequenceBase.Qfall, 3);
|
||||
@@ -88,7 +88,7 @@ namespace TBF.Rig.DataEntry.Combined
|
||||
Height = 305;
|
||||
}
|
||||
|
||||
if (Common.Data.CompoundWMsCount >= 3)
|
||||
if (TBF.Data.CompoundWMsCount >= 3)
|
||||
{
|
||||
qRise3TextBox.Text = Utils.DoubleToStr(Sequences.SequenceBase.Qrise, 3);
|
||||
qFall3TextBox.Text = Utils.DoubleToStr(Sequences.SequenceBase.Qfall, 3);
|
||||
@@ -109,7 +109,7 @@ namespace TBF.Rig.DataEntry.Combined
|
||||
if (Utils.TryParseUFloat(qRise1TextBox.Text, out ftmp)) { QRise[0] = ftmp; } else { allOK = false; }
|
||||
if (Utils.TryParseUFloat(qFall1TextBox.Text, out ftmp)) { QFall[0] = ftmp; } else { allOK = false; }
|
||||
|
||||
if (Common.Data.CompoundWMsCount >= 2)
|
||||
if (TBF.Data.CompoundWMsCount >= 2)
|
||||
{
|
||||
MainStateText[1] = mainState2TextBox.Text;
|
||||
AuxStateText[1] = auxState2TextBox.Text;
|
||||
@@ -117,7 +117,7 @@ namespace TBF.Rig.DataEntry.Combined
|
||||
if (Utils.TryParseUFloat(qFall2TextBox.Text, out ftmp)) { QFall[1] = ftmp; } else { allOK = false; }
|
||||
}
|
||||
|
||||
if (Common.Data.CompoundWMsCount >= 3)
|
||||
if (TBF.Data.CompoundWMsCount >= 3)
|
||||
{
|
||||
MainStateText[2] = mainState3TextBox.Text;
|
||||
AuxStateText[2] = auxState3TextBox.Text;
|
||||
|
||||
@@ -71,11 +71,11 @@ namespace TBF.Rig.DataEntry.Combined
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
disabled = new bool[Common.Data.CompoundWMsCount];
|
||||
wmStartState = new double[Common.Data.CompoundWMsCount * 2];
|
||||
wmStartStateStr = new string[Common.Data.CompoundWMsCount * 2];
|
||||
wmEndState = new double[Common.Data.CompoundWMsCount * 2];
|
||||
wmCycleEndState = new string[Common.Data.CompoundWMsCount * 2];
|
||||
disabled = new bool[TBF.Data.CompoundWMsCount];
|
||||
wmStartState = new double[TBF.Data.CompoundWMsCount * 2];
|
||||
wmStartStateStr = new string[TBF.Data.CompoundWMsCount * 2];
|
||||
wmEndState = new double[TBF.Data.CompoundWMsCount * 2];
|
||||
wmCycleEndState = new string[TBF.Data.CompoundWMsCount * 2];
|
||||
currentOp = CurrentOp.None;
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace TBF.Rig.DataEntry.Combined
|
||||
///
|
||||
void OpenBeginningDlg(EntryForm myRef)
|
||||
{
|
||||
myRef.modelessDlg = new CycleBeginningForm(Common.Data.CompoundWMsCount, myRef.entryFormCfg.RemarkEnabled);
|
||||
myRef.modelessDlg = new CycleBeginningForm(TBF.Data.CompoundWMsCount, myRef.entryFormCfg.RemarkEnabled);
|
||||
modelessDlg.Show();
|
||||
}
|
||||
///
|
||||
@@ -139,20 +139,20 @@ namespace TBF.Rig.DataEntry.Combined
|
||||
///
|
||||
void OpenTestStartStatesDlg(EntryForm myRef)
|
||||
{
|
||||
myRef.modelessDlg = new TestStartEndForm(Common.Data.CompoundWMsCount, myRef.regReaders, myRef.disabled);
|
||||
myRef.modelessDlg = new TestStartEndForm(TBF.Data.CompoundWMsCount, myRef.regReaders, myRef.disabled);
|
||||
modelessDlg.Show();
|
||||
}
|
||||
///
|
||||
void OpenTestEndStatesDlg(EntryForm myRef)
|
||||
{
|
||||
string[] mainStartStateStr = new string[Common.Data.CompoundWMsCount];
|
||||
string[] auxStartStateStr = new string[Common.Data.CompoundWMsCount];
|
||||
for (int i = 0; i < Common.Data.CompoundWMsCount; i++)
|
||||
string[] mainStartStateStr = new string[TBF.Data.CompoundWMsCount];
|
||||
string[] auxStartStateStr = new string[TBF.Data.CompoundWMsCount];
|
||||
for (int i = 0; i < TBF.Data.CompoundWMsCount; i++)
|
||||
{
|
||||
mainStartStateStr[i] = wmStartStateStr[2 * i];
|
||||
auxStartStateStr[i] = wmStartStateStr[2 * i + 1];
|
||||
}
|
||||
myRef.modelessDlg = new TestStartEndForm(Common.Data.CompoundWMsCount, myRef.regReaders, mainStartStateStr, auxStartStateStr, disabled, refVolume, errLimLo, errLimHi);
|
||||
myRef.modelessDlg = new TestStartEndForm(TBF.Data.CompoundWMsCount, myRef.regReaders, mainStartStateStr, auxStartStateStr, disabled, refVolume, errLimLo, errLimHi);
|
||||
modelessDlg.Show();
|
||||
}
|
||||
|
||||
|
||||
@@ -136,9 +136,9 @@ namespace TBF.Rig.DataEntry.Combined
|
||||
/// </summary>
|
||||
void ShuffleTextBoxes()
|
||||
{
|
||||
if (Common.Data.CompoundWMsCount < TextBoxesCount)
|
||||
if (TBF.Data.CompoundWMsCount < TextBoxesCount)
|
||||
{
|
||||
TextBoxesCount = Common.Data.CompoundWMsCount;
|
||||
TextBoxesCount = TBF.Data.CompoundWMsCount;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user