main
1using solidware.financials.windows.ui.presenters;
2
3namespace solidware.financials.windows.ui.views
4{
5 public partial class TaxSummaryTab : Tab<TaxSummaryPresenter>
6 {
7 public TaxSummaryTab()
8 {
9 InitializeComponent();
10 }
11
12 public void bind_to(TaxSummaryPresenter presenter)
13 {
14 DataContext = presenter;
15 //((LineSeries)Chart.Series[0]).ItemsSource = Data();
16 //Chart.Series.Add(new BarSeries
17 // {
18 // Title = "Federal Taxes",
19 // IndependentValueBinding = new Binding("Key"),
20 // DependentValueBinding = new Binding("Value"),
21 // ItemsSource = Data()
22 // });
23 //((PieSeries)Chart.Series[0]).ItemsSource = PieData();
24 }
25
26 //IEnumerable PieData()
27 //{
28 // yield return new KeyValuePair<string, decimal>("Federal", 12345.67m);
29 // yield return new KeyValuePair<string, decimal>("Provincial", 2345.67m);
30 // yield return new KeyValuePair<string, decimal>("Income", 345.67m);
31 //}
32
33 //IEnumerable<KeyValuePair<DateTime, decimal>> Data()
34 //{
35 // yield return new KeyValuePair<DateTime, decimal>(new DateTime(2011, 01, 01), 12345.67m);
36 // yield return new KeyValuePair<DateTime, decimal>(new DateTime(2011, 02, 01), 2345.67m);
37 // yield return new KeyValuePair<DateTime, decimal>(new DateTime(2011, 03, 01), 345.67m);
38 //}
39 }
40}