[Quantproject-developers] QuantProject/b5_Presentation/Reporting/WindowsForm AccountViewer.cs,1.1,1.
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-03-13 20:26:10
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14279/b5_Presentation/Reporting/WindowsForm Modified Files: AccountViewer.cs Log Message: Added new constructor to the class. It is now possible to load the account viewer form using a IList containg the accounts to view (this function hasn't be tested yet. Just try ...). AccountViewer is now complete. Index: AccountViewer.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm/AccountViewer.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AccountViewer.cs 12 Mar 2005 23:53:22 -0000 1.1 --- AccountViewer.cs 13 Mar 2005 20:25:57 -0000 1.2 *************** *** 43,46 **** --- 43,68 ---- } + private void fillAccountsArrayList(IList accountList) + { + foreach(object item in accountList) + { + this.accountsArrayList.Add((Account)item); + } + // + } + + public AccountViewer(IList accountList) + { + + // + InitializeComponent(); + this.fillAccountsArrayList(accountList); + this.setTableAndGrid(); + this.updateForm(); + // + // TODO: + // + } + private void setTableAndGrid() { |