public void UpdateToTop(int index) { SqlInfo topInfo = LastOpenList[index]; LastOpenList.RemoveAt(index); LastOpenList.Insert(0, topInfo); }
public void Add(SqlInfo info) { if (LastOpenList.Count > MaxSize) { LastOpenList.RemoveAt(LastOpenList.Count - 1); } LastOpenList.Add(info); }
public void RemoveAt(int index) { LastOpenList.RemoveAt(index); }