mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-19 16:06:35 +08:00
block
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user