Beispiel #1
0
        public void UpdateToTop(int index)
        {
            SqlInfo topInfo = LastOpenList[index];

            LastOpenList.RemoveAt(index);
            LastOpenList.Insert(0, topInfo);
        }
Beispiel #2
0
 public void Add(SqlInfo info)
 {
     if(LastOpenList.Count > MaxSize)
     {
         LastOpenList.RemoveAt(LastOpenList.Count - 1);
     }
     LastOpenList.Add(info);
 }
Beispiel #3
0
 public void Add(SqlInfo info)
 {
     if (LastOpenList.Count > MaxSize)
     {
         LastOpenList.RemoveAt(LastOpenList.Count - 1);
     }
     LastOpenList.Add(info);
 }
Beispiel #4
0
 public bool Exists(SqlInfo info)
 {
     return LastOpenList.Contains(info);
 }
Beispiel #5
0
 public bool Remove(SqlInfo info)
 {
     return LastOpenList.Remove(info);
 }
Beispiel #6
0
 public bool Exists(SqlInfo info)
 {
     return(LastOpenList.Contains(info));
 }
Beispiel #7
0
 public bool Remove(SqlInfo info)
 {
     return(LastOpenList.Remove(info));
 }