This commit is contained in:
艾竹
2023-03-24 22:32:42 +08:00
parent 5ff4376674
commit 8a2c742ec4
19 changed files with 776 additions and 648 deletions

View File

@@ -84,12 +84,12 @@ namespace AIStudio.Wpf.DiagramDesigner
}
}
public SimpleCommand AddItemCommand
public ICommand AddItemCommand
{
get; private set;
}
public SimpleCommand ImageSwitchCommand
public ICommand ImageSwitchCommand
{
get; private set;
}

View File

@@ -141,8 +141,8 @@ namespace AIStudio.Wpf.DiagramDesigner
menuOptions.Add(menuItem);
}
private SimpleCommand _menuItemCommand;
public SimpleCommand MenuItemCommand
private ICommand _menuItemCommand;
public ICommand MenuItemCommand
{
get
{

View File

@@ -4,6 +4,7 @@ using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using System.Windows.Media;
using AIStudio.Wpf.DiagramDesigner.Models;
@@ -11,8 +12,8 @@ namespace AIStudio.Wpf.DiagramDesigner
{
public abstract class LogicalGateItemViewModelBase : DesignerItemViewModelBase
{
public SimpleCommand AddInputCommand { get; private set; }
public SimpleCommand AddOutputCommand { get; private set; }
public ICommand AddInputCommand { get; private set; }
public ICommand AddOutputCommand { get; private set; }
public LogicalGateItemViewModelBase(LogicalType logicalType) : this(null, logicalType)

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.Windows.Input;
using AIStudio.Wpf.DiagramDesigner.Models;
namespace AIStudio.Wpf.DiagramDesigner
@@ -69,8 +70,8 @@ namespace AIStudio.Wpf.DiagramDesigner
menuOptions.Add(menuItem);
}
private SimpleCommand _menuItemCommand;
public SimpleCommand MenuItemCommand
private ICommand _menuItemCommand;
public ICommand MenuItemCommand
{
get
{

View File

@@ -4,6 +4,7 @@ using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Shapes;
@@ -75,7 +76,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
}
public SimpleCommand MenuItemCommand
public ICommand MenuItemCommand
{
get; private set;
}