PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/V2/trunk/RI/Desktop/StockTraderRI.Modules.Position/PositionSummary/PositionPieChartView.xaml.cs

#
C# | 48 lines | 26 code | 3 blank | 19 comment | 0 complexity | d9469c5b9f0dbc1549aecdac5eaa093c MD5 | raw file
  1. //===================================================================================
  2. // Microsoft patterns & practices
  3. // Composite Application Guidance for Windows Presentation Foundation and Silverlight
  4. //===================================================================================
  5. // Copyright (c) Microsoft Corporation. All rights reserved.
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
  7. // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
  8. // LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  9. // FITNESS FOR A PARTICULAR PURPOSE.
  10. //===================================================================================
  11. // The example companies, organizations, products, domain names,
  12. // e-mail addresses, logos, people, places, and events depicted
  13. // herein are fictitious. No association with any real company,
  14. // organization, product, domain name, email address, logo, person,
  15. // places, or events is intended or should be inferred.
  16. //===================================================================================
  17. using System;
  18. using System.Windows.Controls;
  19. using Microsoft.Practices.Composite.Events;
  20. using StockTraderRI.Modules.Position.Interfaces;
  21. namespace StockTraderRI.Modules.Position.PositionSummary
  22. {
  23. /// <summary>
  24. /// Interaction logic for PositionPieChartView.xaml
  25. /// </summary>
  26. public partial class PositionPieChartView : UserControl, IPositionPieChartView
  27. {
  28. public event EventHandler<DataEventArgs<string>> PositionSelected = delegate { };
  29. public PositionPieChartView()
  30. {
  31. InitializeComponent();
  32. }
  33. public IPositionPieChartPresentationModel Model
  34. {
  35. get
  36. {
  37. return this.DataContext as IPositionPieChartPresentationModel;
  38. }
  39. set
  40. {
  41. this.DataContext = value;
  42. }
  43. }
  44. }
  45. }