最近精简代码,有些bug,修复

This commit is contained in:
艾竹
2023-04-08 14:22:12 +08:00
parent 347488e8e9
commit 78da8f4852
15 changed files with 193 additions and 199 deletions

View File

@@ -356,19 +356,6 @@ namespace AIStudio.Wpf.DiagramDesigner
}
}
private bool enabledForSelection = true;
public bool EnabledForSelection
{
get
{
return enabledForSelection;
}
set
{
SetProperty(ref enabledForSelection, value);
}
}
private double _left;
[CanDo]
public double Left

View File

@@ -1251,7 +1251,7 @@ namespace AIStudio.Wpf.DiagramDesigner
DoCommandManager.DoNewCommand(this.ToString(),
() => {
ClearSelectedItems();
Add(newitems);
Add(newitems, true);
},
() => {
foreach (var item in newitems)

View File

@@ -78,6 +78,20 @@ namespace AIStudio.Wpf.DiagramDesigner
get; private set;
}
private bool enabledForSelection = true;
public bool EnabledForSelection
{
get
{
return enabledForSelection;
}
set
{
SetProperty(ref enabledForSelection, value);
}
}
private bool _isReadOnlyText = false;
public bool IsReadOnlyText
{
@@ -105,27 +119,12 @@ namespace AIStudio.Wpf.DiagramDesigner
{
SetProperty(ref _customText, value);
}
}
private bool _showText;
public bool ShowText
{
get
{
return _showText;
}
set
{
if (!SetProperty(ref _showText, value))
{
RaisePropertyChanged(nameof(ShowText));
}
}
}
}
protected override void ClearText()
{
ShowText = false;
}
private void ExecuteSelectItemCommand(object param)
@@ -163,8 +162,6 @@ namespace AIStudio.Wpf.DiagramDesigner
if (IsReadOnly == true) return;
ShowText = true;
}
}
}
}

View File

@@ -191,6 +191,22 @@ namespace AIStudio.Wpf.DiagramDesigner
}
}
private bool _showText;
public bool ShowText
{
get
{
return _showText;
}
set
{
if (!SetProperty(ref _showText, value))
{
RaisePropertyChanged(nameof(ShowText));
}
}
}
private bool _visible = true;
public bool Visible
{
@@ -343,7 +359,6 @@ namespace AIStudio.Wpf.DiagramDesigner
}
}
protected virtual void ClearText()
{