Exemplo n.º 1
0
 public static void InsertHistory(ConnectionRecord connectionRecord)
 {
     for (int i = 0; i < Histories.Count;)
     {
         if (Histories[i].Info == connectionRecord.Info)
         {
             connectionRecord.CopyFrom(Histories[i]);
             Histories.RemoveAt(i);
             continue;
         }
         else
         {
             i++;
         }
     }
     Histories.Insert(0, connectionRecord);
     SaveConfig();
 }