private void MatchAxis(SymbolCollection newSymbols, List<AxisHelper> newAxisHelpers)
{
foreach (SymbolHelper sh in newSymbols)
{
if (!sh.YaxisAssigned)
{
foreach (AxisHelper ah in newAxisHelpers)
{
if (sh.X_axis_ID == ah.AxisID)
{
sh.Y_axis_descr = ah.Description;
sh.YaxisUnits = ah.Units;
sh.Y_axis_offset = ah.Offset;
sh.Y_axis_correction = ah.Correction;
break;
}
}
}
if (!sh.XaxisAssigned)
{
foreach (AxisHelper ah in newAxisHelpers)
{
if (sh.Y_axis_ID == ah.AxisID)
{
sh.X_axis_descr = ah.Description;
sh.XaxisUnits = ah.Units;
sh.X_axis_offset = ah.Offset;
sh.X_axis_correction = ah.Correction;
break;
}
}
}
}
}