using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace AIStudio.Wpf.DiagramDesigner { public class BlockDiagramViewModel : DiagramViewModel { public BlockDiagramViewModel() { } #region private ICommand _addNextCommand; public ICommand AddNextCommand { get { return this._addNextCommand ?? (this._addNextCommand = new SimpleCommand(ExecuteEnable, this.ExecutedAddNextCommand)); } } private ICommand _removeNextCommand; public ICommand RemoveNextCommand { get { return this._removeNextCommand ?? (this._removeNextCommand = new SimpleCommand(ExecuteEnable, this.ExecutedRemoveNextCommand)); } } private ICommand _addChildCommand; public ICommand AddChildCommand { get { return this._addChildCommand ?? (this._addChildCommand = new SimpleCommand(ExecuteEnable, this.ExecutedAddChildCommand)); } } private ICommand _removeChildCommand; public ICommand RemoveChildCommand { get { return this._removeChildCommand ?? (this._removeChildCommand = new SimpleCommand(ExecuteEnable, this.ExecutedRemoveChildCommand)); } } #endregion #region Block使用 private void ExecutedAddNextCommand(object parameter) { if (parameter is Tuple blockTuple) { } } private void ExecutedRemoveNextCommand(object parameter) { } private void ExecutedAddChildCommand(object parameter) { } private void ExecutedRemoveChildCommand(object parameter) { } #endregion } }