/// <summary> /// Constructor /// </summary> /// <param name="dataContextSource">Instance of View-Model, ViewModelAnalysisSummary</param> public ViewAnalysisSummary(ViewModelDCF dataContextSource) { InitializeComponent(); this.DataContext = dataContextSource; this.DataContextSource = dataContextSource; }
/// <summary> /// DashboardGadgetLoad Event Handler /// </summary> /// <param name="payload">DashboardGadgetPayload</param> public void HandleDashboardGadgetLoad(DashboardGadgetPayload payload) { if (this.rtvDashboard.Items.Count > 0) { return; } DashboardGadgetParam param = new DashboardGadgetParam() { DashboardGadgetPayload = payload, DBInteractivity = dBInteractivity, EventAggregator = eventAggregator, LoggerFacade = logger }; ViewModelDCF _viewModel = new ViewModelDCF(param); this.rtvDashboard.Items.Add(new RadTileViewItem { Header = new Telerik.Windows.Controls.HeaderedContentControl { Content = GadgetNames.HOLDINGS_DISCOUNTED_CASH_FLOW_ASSUMPTIONS, Foreground = new SolidColorBrush(Colors.Black), FontSize = 12, FontFamily = new FontFamily("Arial") }, Content = new ViewAnalysisSummary(_viewModel) }); this.rtvDashboard.Items.Add(new RadTileViewItem { Header = new Telerik.Windows.Controls.HeaderedContentControl { Content = GadgetNames.HOLDINGS_FREE_CASH_FLOW, Foreground = new SolidColorBrush(Colors.Black), FontSize = 12, FontFamily = new FontFamily("Arial") }, Content = new ViewFreeCashFlows(new ViewModelFreeCashFlows(param)) }); this.rtvDashboard.Items.Add(new RadTileViewItem { Header = new Telerik.Windows.Controls.HeaderedContentControl { Content = GadgetNames.HOLDINGS_DISCOUNTED_CASH_FLOW_TERMINAL_VALUE_CALCULATIONS, Foreground = new SolidColorBrush(Colors.Black), FontSize = 12, FontFamily = new FontFamily("Arial") }, Content = new ViewTerminalValueCalculations(_viewModel) }); this.rtvDashboard.Items.Add(new RadTileViewItem { Header = new Telerik.Windows.Controls.HeaderedContentControl { Content = GadgetNames.HOLDINGS_DISCOUNTED_CASH_FLOW_SUMMARY, Foreground = new SolidColorBrush(Colors.Black), FontSize = 12, FontFamily = new FontFamily("Arial") }, Content = new ViewDCFSummary(_viewModel) }); this.rtvDashboard.Items.Add(new RadTileViewItem { Header = new Telerik.Windows.Controls.HeaderedContentControl { Content = GadgetNames.HOLDINGS_DISCOUNTED_CASH_FLOW_SENSIVITY, Foreground = new SolidColorBrush(Colors.Black), FontSize = 12, FontFamily = new FontFamily("Arial") }, Content = new ViewSensitivity(_viewModel) }); this.rtvDashboard.Items.Add(new RadTileViewItem { Header = new Telerik.Windows.Controls.HeaderedContentControl { Content = GadgetNames.HOLDINGS_DISCOUNTED_CASH_FLOW_FORWARD_EPS, Foreground = new SolidColorBrush(Colors.Black), FontSize = 12, FontFamily = new FontFamily("Arial") }, Content = new ViewSensitivityEPS(_viewModel) }); this.rtvDashboard.Items.Add(new RadTileViewItem { Header = new Telerik.Windows.Controls.HeaderedContentControl { Content = GadgetNames.HOLDINGS_DISCOUNTED_CASH_FLOW_FORWARD_BVPS, Foreground = new SolidColorBrush(Colors.Black), FontSize = 12, FontFamily = new FontFamily("Arial") }, Content = new ViewSensitivityBVPS(_viewModel) }); }
/// <summary> /// Constructor /// </summary> /// <param name="dataContextSource">Instance of View-Model</param> public ViewSensitivity(ViewModelDCF dataContextSource) { InitializeComponent(); this.DataContext = dataContextSource; this.DataContextSource = dataContextSource; }
/// <summary> /// Constructor /// </summary> public ViewTerminalValueCalculations(ViewModelDCF dataContextSource) { InitializeComponent(); this.DataContext = dataContextSource; this.DataContextSource = dataContextSource; }