[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting Account.cs,1.8,1.9
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2004-12-14 21:30:26
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12398/b4_Business/a1_Financial/a2_Accounting Modified Files: Account.cs Log Message: Modified Add (Order order) method: now it is simply updated the activeOrders field (arrayList) Added new methods: - ClearOrders, for clearing all activeOrders; - ExecuteOrders, for execution of all active orders Index: Account.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/Account.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Account.cs 5 Dec 2004 02:42:45 -0000 1.8 --- Account.cs 14 Dec 2004 21:30:14 -0000 1.9 *************** *** 170,178 **** moneyAmount ); } ! public void AddOrder( Order order ) { ! this.orderExecutor.Execute( order ); } public bool Contains( Instrument instrument ) { --- 170,189 ---- moneyAmount ); } ! public void ClearOrders() ! { ! this.activeOrders.Clear(); ! } public void AddOrder( Order order ) { ! this.activeOrders.Add(order); ! //this.orderExecutor.Execute( order ); } + public void ExecuteActiveOrders() + { + foreach(object order in this.activeOrders) + { + this.orderExecutor.Execute( (Order)order ); + } + } public bool Contains( Instrument instrument ) { |