添加附加信息

This commit is contained in:
艾竹
2023-02-19 23:20:02 +08:00
parent c053396fa0
commit 58c18db12f
2 changed files with 138 additions and 5 deletions

View File

@@ -208,6 +208,86 @@ namespace AIStudio.Wpf.Mind.ViewModels
private bool _isRightLayout = true;
#endregion
#region
private LinkInfo _linkInfo;
public LinkInfo LinkInfo
{
get
{
return _linkInfo;
}
set
{
SetProperty(ref _linkInfo, value);
}
}
private ImageInfo _imageInfo;
public ImageInfo ImageInfo
{
get
{
return _imageInfo;
}
set
{
SetProperty(ref _imageInfo, value);
}
}
private string _remark;
public string Remark
{
get
{
return _remark;
}
set
{
SetProperty(ref _remark, value);
}
}
private string _grade;
public string Grade
{
get
{
return _grade;
}
set
{
SetProperty(ref _grade, value);
}
}
private double _completionRate;
public double CompletionRate
{
get
{
return _completionRate;
}
set
{
SetProperty(ref _completionRate, value);
}
}
private List<string> _tags;
public List<string> Tags
{
get
{
return _tags;
}
set
{
SetProperty(ref _tags, value);
}
}
#endregion
#region
public SimpleCommand AddParentCommand
{
@@ -704,4 +784,62 @@ namespace AIStudio.Wpf.Mind.ViewModels
}
#endregion
}
public class LinkInfo : BindableBase
{
private string _url;
public string Url
{
get
{
return _url;
}
set
{
SetProperty(ref _url, value);
}
}
private string _text;
public string Text
{
get
{
return _text;
}
set
{
SetProperty(ref _text, value);
}
}
}
public class ImageInfo : BindableBase
{
private string _url;
public string Url
{
get
{
return _url;
}
set
{
SetProperty(ref _url, value);
}
}
private string _text;
public string Text
{
get
{
return _text;
}
set
{
SetProperty(ref _text, value);
}
}
}
}