public AnalyzeSettingsViewModel(IEventAggregator eventAggregator, IRegionManager regionManager)
        {
            this.eventAggregator    = eventAggregator;
            this.regionManager      = regionManager;
            InvestorSelectedCommand = new DelegateCommand(OnInvestorSelected);
            ClearSelectionCommand   = new DelegateCommand(OnClearSelection);
            SelectAllCommand        = new DelegateCommand(OnSelectAll);
            RemoveFromListCommand   = new DelegateCommand(OnRemoveFromList);
            StartAnalyzingCommand   = new DelegateCommand(OnStartAnalyzing);
            EndDateChangedCommand   = new DelegateCommand <DateTime?>(OnEndDateChanged);
            StartDateChangedCommand = new DelegateCommand <DateTime?>(OnStartDateChanged);
            AllCommitments          = new ObservableCollection <InvestorCommitment>();
            SelectedCommitments     = new ObservableCollection <InvestorCommitment>();


            ReadInvestors();

            AnalyzingParameter = new AnalyzingParameter()
            {
                Commitments = new List <ExtendedCommitment>(),
                EndDate     = dateFunctions.PreviousQuarter(DateTime.Now),
                StartDate   = new DateTime(1994, 1, 1)
            };
            AnalyzingParameter.PropertyChanged += AnalyzingParameter_PropertyChanged;


            eventAggregator.GetEvent <AnalyzingInformationEvent>().Subscribe(OnAnalyzingChanged);
        }
Esempio n. 2
0
        public override void OnNavigatedTo(NavigationContext navigationContext)
        {
            AnalyzingParameter = navigationContext.Parameters["Parameter"] as AnalyzingParameter;
            TabTitle           = "Portfolio Analyse";

            if (hasBeenLoaded == false)
            {
                return;
            }
            CreateHeaderText();
            CreateDataForCharts();
        }