Exemplo n.º 1
0
 public void LoadFromFile(StreamReader file)
 {
     while (!file.EndOfStream)
     {
         Order orderTmp = Order.ReadOrderFromFile(file);
         int   i        = 0;
         for (; i < Orders.Count; i++)
         {
             if (Orders[i].CheckId(orderTmp.OrderId))
             {
                 break;
             }
         }
         if (i == Orders.Count)
         {
             SingleInstance.AddOrder(orderTmp);
         }
     }
 }