小小整理下

This commit is contained in:
kwai
2023-06-19 15:47:39 +08:00
parent b946c2df93
commit 4870a2fd0e
7 changed files with 539 additions and 540 deletions

View File

@@ -0,0 +1,78 @@
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<BlockDesignerItemViewModel, BlockDesignerItemViewModel> blockTuple)
{
}
}
private void ExecutedRemoveNextCommand(object parameter)
{
}
private void ExecutedAddChildCommand(object parameter)
{
}
private void ExecutedRemoveChildCommand(object parameter)
{
}
#endregion
}
}