Ejemplo n.º 1
0
        public ProfileEditorViewModel(ProfileModule module,
                                      ProfileViewModel profileViewModel,
                                      ProfileTreeViewModel profileTreeViewModel,
                                      DisplayConditionsViewModel dataModelConditionsViewModel,
                                      LayerPropertiesViewModel layerPropertiesViewModel,
                                      IProfileEditorService profileEditorService,
                                      IProfileService profileService,
                                      IDialogService dialogService,
                                      ISettingsService settingsService,
                                      IModuleService moduleService,
                                      ISnackbarMessageQueue snackbarMessageQueue)
        {
            _profileEditorService = profileEditorService;
            _profileService       = profileService;
            _settingsService      = settingsService;
            _moduleService        = moduleService;
            _snackbarMessageQueue = snackbarMessageQueue;

            DisplayName   = "PROFILE EDITOR";
            Module        = module;
            DialogService = dialogService;

            Profiles = new BindableCollection <ProfileDescriptor>();

            // Populate the panels
            ProfileViewModel           = profileViewModel;
            ProfileTreeViewModel       = profileTreeViewModel;
            DisplayConditionsViewModel = dataModelConditionsViewModel;
            LayerPropertiesViewModel   = layerPropertiesViewModel;

            Items.Add(ProfileViewModel);
            Items.Add(ProfileTreeViewModel);
            Items.Add(dataModelConditionsViewModel);
            Items.Add(LayerPropertiesViewModel);
        }
Ejemplo n.º 2
0
        public ProfileEditorViewModel(ProfileModule module,
                                      ProfileViewModel profileViewModel,
                                      ProfileTreeViewModel profileTreeViewModel,
                                      DisplayConditionsViewModel dataModelConditionsViewModel,
                                      LayerPropertiesViewModel layerPropertiesViewModel,
                                      IProfileEditorService profileEditorService,
                                      IProfileService profileService,
                                      IDialogService dialogService,
                                      ISettingsService settingsService,
                                      IModuleService moduleService,
                                      IMessageService messageService)
        {
            _profileEditorService = profileEditorService;
            _profileService       = profileService;
            _settingsService      = settingsService;
            _moduleService        = moduleService;
            _messageService       = messageService;

            DisplayName   = "PROFILE EDITOR";
            Module        = module;
            DialogService = dialogService;

            Profiles = new BindableCollection <ProfileDescriptor>();

            // Populate the panels
            ProfileViewModel = profileViewModel;
            ProfileViewModel.ConductWith(this);
            ProfileTreeViewModel = profileTreeViewModel;
            ProfileTreeViewModel.ConductWith(this);
            DisplayConditionsViewModel = dataModelConditionsViewModel;
            DisplayConditionsViewModel.ConductWith(this);
            LayerPropertiesViewModel = layerPropertiesViewModel;
            LayerPropertiesViewModel.ConductWith(this);
        }