Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
NodeCommandWrapperBase.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System.Collections.Generic;
4 
5 using SiliconStudio.ActionStack;
7 using SiliconStudio.Presentation.ViewModel;
8 using SiliconStudio.Quantum;
10 
11 namespace SiliconStudio.Presentation.Quantum
12 {
13  /// <summary>
14  /// A base class to wrap one or multiple <see cref="INodeCommand"/> instances into a <see cref="CancellableCommand"/>.
15  /// </summary>
17  {
18  /// <summary>
19  /// Gets the how to combine a set of <see cref="NodeCommandWrapperBase"/> in a <see cref="CombinedObservableNode"/>
20  /// </summary>
21  public abstract CombineMode CombineMode { get; }
22 
23  /// <summary>
24  /// Gets or sets the path to the <see cref="ObservableNode"/> related to this command.
25  /// </summary>
26  public string ObservableNodePath { get; set; }
27 
28  /// <summary>
29  /// Initializes a new instance of the <see cref="CancellableCommand"/> class.
30  /// </summary>
31  /// <param name="serviceProvider">A service provider that can provide a <see cref="IActionStack"/> to use for this view model.</param>
32  /// <param name="dirtiables">The <see cref="IDirtiableViewModel"/> instances associated to this command.</param>
34  : base(serviceProvider, dirtiables)
35  {
36  }
37  }
38 }
CombineMode
An enum that describes what to do with a node or a command when combining view models.
Definition: CombineMode.cs:8
A base class to wrap one or multiple INodeCommand instances into a CancellableCommand.
NodeCommandWrapperBase(IViewModelServiceProvider serviceProvider, IEnumerable< IDirtiableViewModel > dirtiables)
Initializes a new instance of the CancellableCommand class.