Example #1
0
        public PluginEffectViewModel(
            IEffect effect,
            PluginViewModel viewModel,
            ComponentViewModelFactory componentViewModelFactory)
        {
            _effect    = effect;
            _viewModel = viewModel;

            Component          = componentViewModelFactory.Create(_effect.Component);
            Component.Changed += OnPropertyChanged;
            MoveDownCommand    = new ActionCommand(async() => await MoveDownAsync(), () => true);
            MoveUpCommand      = new ActionCommand(async() => await MoveUpAsync(), () => true);
            RemoveCommand      = new ActionCommand(async() => await RemoveAsync(), () => true);
        }
Example #2
0
 private PluginElementViewModel CreatePluginElementViewModel(IComponent component)
 {
     return(new PluginElementViewModel(_componentViewModelFactory.Create(component)));
 }