Common.Data --> TBF.Data and TBF.DB
This commit is contained in:
@@ -89,7 +89,7 @@ namespace TBF.Rig.DataEntry.Fewa
|
||||
suffixText = new string[WMsCount];
|
||||
Disabled = new bool[WMsCount];
|
||||
|
||||
ShuffleTextBoxes(Common.Data.WMsCount, Common.Data.LineSize);
|
||||
ShuffleTextBoxes(TBF.Data.WMsCount, TBF.Data.LineSize);
|
||||
|
||||
//Height = 147 + WaterMetersCount * 90;
|
||||
}
|
||||
|
||||
@@ -71,11 +71,11 @@ namespace TBF.Rig.DataEntry.Fewa
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
disabled = new bool[Common.Data.WMsCount];
|
||||
wmStartState = new double[Common.Data.WMsCount];
|
||||
wmStartStateStr = new string[Common.Data.WMsCount];
|
||||
wmEndState = new double[Common.Data.WMsCount];
|
||||
wmCycleEndState = new string[Common.Data.WMsCount];
|
||||
disabled = new bool[TBF.Data.WMsCount];
|
||||
wmStartState = new double[TBF.Data.WMsCount];
|
||||
wmStartStateStr = new string[TBF.Data.WMsCount];
|
||||
wmEndState = new double[TBF.Data.WMsCount];
|
||||
wmCycleEndState = new string[TBF.Data.WMsCount];
|
||||
currentOp = CurrentOp.None;
|
||||
}
|
||||
|
||||
@@ -126,25 +126,25 @@ namespace TBF.Rig.DataEntry.Fewa
|
||||
///
|
||||
void OpenBeginningDlg(EntryFormNoStartEnd myRef)
|
||||
{
|
||||
myRef.modelessDlg = new CycleBeginningForm(Common.Data.WMsCount);
|
||||
myRef.modelessDlg = new CycleBeginningForm(TBF.Data.WMsCount);
|
||||
modelessDlg.Show();
|
||||
}
|
||||
///
|
||||
void OpenEndDlg(EntryFormNoStartEnd myRef)
|
||||
{
|
||||
myRef.modelessDlg = new CycleEndForm(Common.Data.WMsCount, Common.Data.LineSize);
|
||||
myRef.modelessDlg = new CycleEndForm(TBF.Data.WMsCount, TBF.Data.LineSize);
|
||||
modelessDlg.Show();
|
||||
}
|
||||
///
|
||||
void OpenTestStartStatesDlg(EntryFormNoStartEnd myRef)
|
||||
{
|
||||
myRef.modelessDlg = new TestStartEndForm(Common.Data.WMsCount, myRef.regReaders, myRef.disabled);
|
||||
myRef.modelessDlg = new TestStartEndForm(TBF.Data.WMsCount, myRef.regReaders, myRef.disabled);
|
||||
modelessDlg.Show();
|
||||
}
|
||||
///
|
||||
void OpenTestEndStatesDlg(EntryFormNoStartEnd myRef)
|
||||
{
|
||||
myRef.modelessDlg = new TestStartEndForm(Common.Data.WMsCount, myRef.regReaders, wmStartStateStr, disabled, refVolume, errLimLo, errLimHi);
|
||||
myRef.modelessDlg = new TestStartEndForm(TBF.Data.WMsCount, myRef.regReaders, wmStartStateStr, disabled, refVolume, errLimLo, errLimHi);
|
||||
modelessDlg.Show();
|
||||
}
|
||||
|
||||
|
||||
@@ -152,18 +152,18 @@ namespace TBF.Rig.DataEntry.Fewa
|
||||
{
|
||||
if (TextBoxesCount > WMsCount)
|
||||
{
|
||||
int nrLines = WMsCount / Common.Data.LineSize;
|
||||
int nrLines = WMsCount / TBF.Data.LineSize;
|
||||
int gap = (TextBoxesCount - WMsCount) / nrLines;
|
||||
|
||||
int dest = 0;
|
||||
for (int l = 0; l < nrLines; l++)
|
||||
{
|
||||
for (int i = 0; i < Common.Data.LineSize; i++)
|
||||
for (int i = 0; i < TBF.Data.LineSize; i++)
|
||||
{
|
||||
labels[dest] = labels[l * Common.Data.LineSize + l * gap + i];
|
||||
startTextBoxes[dest] = startTextBoxes[l * Common.Data.LineSize + l * gap + i];
|
||||
endTextBoxes[dest] = endTextBoxes[l * Common.Data.LineSize + l * gap + i];
|
||||
exclamations[dest] = exclamations[l * Common.Data.LineSize + l * gap + i];
|
||||
labels[dest] = labels[l * TBF.Data.LineSize + l * gap + i];
|
||||
startTextBoxes[dest] = startTextBoxes[l * TBF.Data.LineSize + l * gap + i];
|
||||
endTextBoxes[dest] = endTextBoxes[l * TBF.Data.LineSize + l * gap + i];
|
||||
exclamations[dest] = exclamations[l * TBF.Data.LineSize + l * gap + i];
|
||||
dest++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user