コード例 #1
0
        public TreePropertyViewModel(LayerProperty <T> layerProperty, LayerPropertyViewModel layerPropertyViewModel, IProfileEditorService profileEditorService)
        {
            _profileEditorService  = profileEditorService;
            LayerProperty          = layerProperty;
            LayerPropertyViewModel = layerPropertyViewModel;

            PropertyInputViewModel = _profileEditorService.CreatePropertyInputViewModel(LayerProperty);
            PropertyInputViewModel.ConductWith(this);
        }
コード例 #2
0
        public TreePropertyViewModel(LayerProperty <T> layerProperty, LayerPropertyViewModel layerPropertyViewModel, IProfileEditorService profileEditorService)
        {
            _profileEditorService  = profileEditorService;
            LayerProperty          = layerProperty;
            LayerPropertyViewModel = layerPropertyViewModel;

            PropertyInputViewModel = _profileEditorService.CreatePropertyInputViewModel(LayerProperty);
            _profileEditorService.SelectedDataBindingChanged += ProfileEditorServiceOnSelectedDataBindingChanged;
            LayerProperty.VisibilityChanged   += LayerPropertyOnVisibilityChanged;
            LayerProperty.DataBindingEnabled  += LayerPropertyOnDataBindingChange;
            LayerProperty.DataBindingDisabled += LayerPropertyOnDataBindingChange;
            LayerPropertyViewModel.IsVisible   = !LayerProperty.IsHidden;
        }