private void RemoveTopMost()
{
int num;
if (this.m_CurveEditor.GetTopMostCurveID(out num))
{
for (int i = 0; i < this.m_AddedCurves.Count; i++)
{
CurveData data = this.m_AddedCurves[i];
if ((data.m_MaxId == num) || (data.m_MinId == num))
{
this.Remove(i);
this.ContentChanged();
this.UpdateRangeBasedOnShownCurves();
break;
}
}
}
}