This commit is contained in:
艾竹
2023-07-23 12:35:18 +08:00
parent b6e095293c
commit e34f7fd5a3
5 changed files with 80 additions and 13 deletions

View File

@@ -10,6 +10,34 @@ namespace AIStudio.Wpf.DiagramDesigner
{
public class ConstParameter : BindableBase, IParameter
{
private ISelectable _item;
public ISelectable Item
{
get
{
return _item;
}
set
{
SetProperty(ref _item, value);
}
}
private string _text;
public string Text
{
get
{
return _text;
}
set
{
SetProperty(ref _text, value);
}
}
private object _value;
public object Value
@@ -24,6 +52,9 @@ namespace AIStudio.Wpf.DiagramDesigner
}
}
public bool IsPublic { get; set; } = true;
public void Add(object value)
{
if (double.TryParse(Value?.ToString() ?? "", out var value1) && double.TryParse(value?.ToString() ?? "", out var value2))