Ejemplo n.º 1
0
        public MainViewModel()
        {
            AggregateFormationConfig = new AggregateFormationConfig();
            FilmFormationConfig      = new FilmFormationConfig();
            SimulationProperties     = new SimulationProperties();

            LoggingViewModel = new LoggingViewModel();
            StatusViewModel  = new StatusViewModel(LoggingViewModel);

            AggFormationControlViewModel = new AggFormationControlViewModel(
                AggregateFormationConfig,
                SimulationProperties,
                StatusViewModel,
                LoggingViewModel);

            FilmFormationControlViewModel = new FilmFormationControlViewModel(
                FilmFormationConfig,
                SimulationProperties,
                AggFormationControlViewModel,
                StatusViewModel,
                LoggingViewModel);

            FilmAnalysisControlViewModel = new FilmAnalysisControlViewModel();

            ActivateItem(AggFormationControlViewModel);
        }
Ejemplo n.º 2
0
 public FilmFormationControlViewModel(
     IFilmFormationConfig filmFormationConfig,
     SimulationProperties simProp,
     AggFormationControlViewModel aggFormationControlViewModel,
     StatusViewModel statusViewModel,
     LoggingViewModel loggingViewModel)
 {
     FilmFormationConfig          = filmFormationConfig;
     SimProp                      = simProp;
     FilmFormationConfigViewModel = new FilmFormationConfigViewModel(FilmFormationConfig);
     AggFormationControlViewModel = aggFormationControlViewModel;
     _statusViewModel             = statusViewModel;
     _loggingViewModel            = loggingViewModel;
 }