@@ -26,6 +26,8 @@ public class MainFormPresenter : IDisposable
2626 private readonly IGraphControl _graphControl3Month ;
2727 private readonly IGraphControl _graphControl6Month ;
2828 private readonly IGraphControl _graphControl12Month ;
29+ private readonly IGraphControl _graphControlAll ;
30+ private readonly IAboutFormPresenter _aboutFormPresenter ;
2931
3032 private readonly BackgroundWorker _feedReader ;
3133
@@ -55,9 +57,12 @@ public MainFormPresenter()
5557 _graphControl3Month = new GraphControl ( ) ;
5658 _graphControl6Month = new GraphControl ( ) ;
5759 _graphControl12Month = new GraphControl ( ) ;
60+ _graphControlAll = new GraphControl ( ) ;
5861
5962 InitGraphs ( ) ;
6063
64+ _aboutFormPresenter = new AboutFormPresenter ( ) ;
65+
6166 _mainForm . UpdateSmoothSelection ( EuriborSharpSettings . Default . SmoothLine ) ;
6267 _mainForm . UpdateLineStyleSelection ( EuriborSharpSettings . Default . NormalLineSelected ) ;
6368 _mainForm . UpdateRendererSelection ( EuriborSharpSettings . Default . Xkcd ) ;
@@ -66,6 +71,7 @@ public MainFormPresenter()
6671 _mainForm . AddControl ( ( UserControl ) _graphControl3Month , TheEuribors . GetInterestName ( TimePeriods . ThreeMonths ) ) ;
6772 _mainForm . AddControl ( ( UserControl ) _graphControl6Month , TheEuribors . GetInterestName ( TimePeriods . SixMonths ) ) ;
6873 _mainForm . AddControl ( ( UserControl ) _graphControl12Month , TheEuribors . GetInterestName ( TimePeriods . TwelveMonths ) ) ;
74+ _mainForm . AddControl ( ( UserControl ) _graphControlAll , TheEuribors . GetInterestName ( TimePeriods . Default ) ) ;
6975#if DEBUG
7076 _mainForm . AddControl ( ( UserControl ) _logControl , "Log" ) ;
7177#endif
@@ -89,6 +95,7 @@ private void UpdateGraphView()
8995 _graphControl3Month . UpdateGraph ( ) ;
9096 _graphControl6Month . UpdateGraph ( ) ;
9197 _graphControl12Month . UpdateGraph ( ) ;
98+ _graphControlAll . UpdateGraph ( ) ;
9299 }
93100
94101 private void InitGraphs ( )
@@ -97,6 +104,7 @@ private void InitGraphs()
97104 _graphControl3Month . Init ( TimePeriods . ThreeMonths , EuriborSharpSettings . Default . SmoothLine , EuriborSharpSettings . Default . Xkcd ) ;
98105 _graphControl6Month . Init ( TimePeriods . SixMonths , EuriborSharpSettings . Default . SmoothLine , EuriborSharpSettings . Default . Xkcd ) ;
99106 _graphControl12Month . Init ( TimePeriods . TwelveMonths , EuriborSharpSettings . Default . SmoothLine , EuriborSharpSettings . Default . Xkcd ) ;
107+ _graphControlAll . Init ( TimePeriods . Default , EuriborSharpSettings . Default . SmoothLine , EuriborSharpSettings . Default . Xkcd ) ;
100108 }
101109
102110 void _mainForm_LineStyleNormalSelected ( object sender , EventArgs e )
@@ -123,17 +131,13 @@ void _mainForm_LineStyleNoneSelected(object sender, EventArgs e)
123131
124132 void _mainForm_LineSmoothChanged ( object sender , BooleanEventArg e )
125133 {
134+ EuriborSharpSettings . Default . SmoothLine = e . value ;
135+ EuriborSharpSettings . Default . Save ( ) ;
126136 _graphControl1Month . UpdateSmoothing ( e . value ) ;
127- _graphControl1Month . UpdateGraph ( ) ;
128137 _graphControl3Month . UpdateSmoothing ( e . value ) ;
129- _graphControl3Month . UpdateGraph ( ) ;
130138 _graphControl6Month . UpdateSmoothing ( e . value ) ;
131- _graphControl6Month . UpdateGraph ( ) ;
132139 _graphControl12Month . UpdateSmoothing ( e . value ) ;
133- _graphControl12Month . UpdateGraph ( ) ;
134-
135- EuriborSharpSettings . Default . SmoothLine = e . value ;
136- EuriborSharpSettings . Default . Save ( ) ;
140+ UpdateGraphView ( ) ;
137141 }
138142
139143 void _mainForm_ExitSelected ( object sender , EventArgs e )
@@ -142,9 +146,9 @@ void _mainForm_ExitSelected(object sender, EventArgs e)
142146 _mainForm . Close ( ) ;
143147 }
144148
145- static void _mainForm_HelpSelected ( object sender , EventArgs e )
149+ void _mainForm_HelpSelected ( object sender , EventArgs e )
146150 {
147- throw new NotImplementedException ( ) ;
151+ _aboutFormPresenter . ShowAboutForm ( ) ;
148152 }
149153
150154 static void _logControl_AddressChanged ( object sender , StringEventArg e )
0 commit comments