最近精简代码,有些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

@@ -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;
}
}
}
}