[Quantproject-developers] QuantProject/b5_Presentation/Reporting/WindowsForm Report.cs,NONE,1.1
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-08-01 00:17:15
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20017/b5_Presentation/Reporting/WindowsForm Added Files: Report.cs Log Message: Windows Form account report --- NEW FILE: Report.cs --- /* QuantProject - Quantitative Finance Library Report.cs Copyright (C) 2003 Glauco Siliprandi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ using System; using System.Windows.Forms; using QuantProject.ADT; using QuantProject.Business.Financial.Accounting; using QuantProject.Business.Financial.Accounting.Reporting; namespace QuantProject.Presentation.Reporting.WindowsForm { /// <summary> /// Windows Form account report /// </summary> public class Report : Form { private Account account; private AccountReport accountReport; private ReportTabControl reportTabControl; public Report( Account account ) { this.account = account; } /// <summary> /// Populates the form and displays itself /// </summary> private void show_set_accountReport( string reportName , int numDaysForInterval , ExtendedDateTime endDateTime , string buyAndHoldTicker ) { if ( this.accountReport == null ) this.accountReport = this.account.CreateReport( reportName , numDaysForInterval , endDateTime , buyAndHoldTicker ); } private void show_populateForm() { this.Location = new System.Drawing.Point( 1000,500); this.Width = 500; this.reportTabControl = new ReportTabControl( this.accountReport ); this.Controls.Add( this.reportTabControl ); } public void Show( string reportName , int numDaysForInterval , ExtendedDateTime endDateTime , string buyAndHoldTicker ) { this.show_set_accountReport( reportName , numDaysForInterval , endDateTime , buyAndHoldTicker ); this.show_populateForm(); base.ShowDialog(); } } } |