[Quantproject-developers] QuantProject/b5_Presentation HistoriesViewer.cs, 1.1, 1.2 HistoriesViewer
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2009-03-09 22:48:30
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21140/b5_Presentation Modified Files: HistoriesViewer.cs HistoriesViewer.Designer.cs Log Message: - the form title is a parameter, now - the chart is fill-docked to the form, now - the form has been resized Index: HistoriesViewer.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/HistoriesViewer.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HistoriesViewer.cs 28 Feb 2009 18:18:11 -0000 1.1 --- HistoriesViewer.cs 9 Mar 2009 22:48:25 -0000 1.2 *************** *** 40,44 **** private Chart chart; ! public HistoriesViewer() { // --- 40,44 ---- private Chart chart; ! public HistoriesViewer( string formTitle ) { // *************** *** 47,50 **** --- 47,51 ---- InitializeComponent(); + this.Text = formTitle; this.addChart(); } *************** *** 53,56 **** --- 54,58 ---- { this.chart = new Chart(); + this.chart.Dock = DockStyle.Fill; this.Controls.Add( chart ); } *************** *** 60,105 **** this.chart.Add( historyToBePlotted , color ); } - - // #region buildTheForm - // - // private void addChart() - // { - // Chart chart = new Chart(); - // this.Controls.Add( chart ); - // } - // - // #region populateChart - // - // #region addChart - // - // #region getHistoryToBePlotted - // private History getHistoryToBePlotted( WeightedPosition weightedPosition ) - // { - // - // } - // #endregion getHistoryToBePlotted - // - // private void addHistory( WeightedPosition weightedPosition ) - // { - // History historyToBePlotted = - // this.getHistoryToBePlotted( weightedPosition ); - // this.addHistory( historyToBePlotted ); - // } - // #endregion addChart - // - // private void populateChart() - // { - // foreach ( WeightedPosition weightedPosition in - // this.pairsTradingTestingPositions.WeightedPositions ) - // this.addHistory( weightedPosition ); - // } - // #endregion populateChart - // - // private void buildTheForm() - // { - // this.addChart(); - // this.populateChart(); - // } - // #endregion buildTheForm } } --- 62,65 ---- Index: HistoriesViewer.Designer.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/HistoriesViewer.Designer.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HistoriesViewer.Designer.cs 28 Feb 2009 18:18:11 -0000 1.1 --- HistoriesViewer.Designer.cs 9 Mar 2009 22:48:26 -0000 1.2 *************** *** 1,3 **** ! /* QuantProject - Quantitative Finance Library --- 1,3 ---- ! /* QuantProject - Quantitative Finance Library *************** *** 53,62 **** this.SuspendLayout(); // ! // PairsTradingStudio // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ! this.ClientSize = new System.Drawing.Size(787, 403); ! this.Name = "PairsTradingStudio"; this.Text = "PairsTradingVisualForm"; this.ResumeLayout(false); --- 53,62 ---- this.SuspendLayout(); // ! // HistoriesViewer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ! this.ClientSize = new System.Drawing.Size(333, 309); ! this.Name = "HistoriesViewer"; this.Text = "PairsTradingVisualForm"; this.ResumeLayout(false); |