Esempio n. 1
0
 static void WriteTradeRecordToXml(ref List <TradeRecord> tradeRecord)
 {
     File.WriteAllText(FileWritePath, Xml.XMLSerializer(typeof(List <TradeRecord>), tradeRecord));
     Console.WriteLine("TradeRecord.xml created successfully.");
 }
Esempio n. 2
0
 static void ReadOrderFromXml(ref Order[] orderQueue)
 {
     orderQueue = Xml.Deserialize(typeof(Order[]), File.ReadAllText(FileReadPath)) as Order[];
     Console.WriteLine("OrderQueue.xml loaded successfully.");
 }