Exemplo n.º 1
0
        public FilterViewModel(Model.FilterInstance instance, FilterGraphViewModel parent)
        {
            _filterInstance = instance;
            Parent = parent;

            InputPins = _filterInstance.InputPins.Select(pin => new InputPinViewModel(this, pin)).ToList();
            OutputPins = _filterInstance.OutputPins.Select(pin => new OutputPinViewModel(this, pin)).ToList();
        }
Exemplo n.º 2
0
        private void UpdateWorkspaceViewModel()
        {
            var filterGraphViewModel = new ViewModel.FilterGraphViewModel(_filterGraph);
            var workspaceViewModel = CreateWorkspaceBackground().Concat(filterGraphViewModel.AllObjects);

            workSpace.ItemsSource = workspaceViewModel;
            menuBar.DataContext = filterGraphViewModel;
        }