缩短类限定名
This commit is contained in:
@@ -29,12 +29,12 @@ namespace SpineViewer.Controls
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Spine 列表只读视图, 访问时必须使用 lock 语句锁定视图本身
|
/// Spine 列表只读视图, 访问时必须使用 lock 语句锁定视图本身
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly ReadOnlyCollection<Spine.SpineObject> Spines;
|
public readonly ReadOnlyCollection<SpineObject> Spines;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Spine 列表, 访问时必须使用 lock 语句锁定只读视图 Spines
|
/// Spine 列表, 访问时必须使用 lock 语句锁定只读视图 Spines
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly List<Spine.SpineObject> spines = [];
|
private readonly List<SpineObject> spines = [];
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 用于属性页显示模型参数的包装类
|
/// 用于属性页显示模型参数的包装类
|
||||||
@@ -80,7 +80,7 @@ namespace SpineViewer.Controls
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var spine = Spine.SpineObject.New(result.Version, result.SkelPath, result.AtlasPath);
|
var spine = SpineObject.New(result.Version, result.SkelPath, result.AtlasPath);
|
||||||
|
|
||||||
// 如果索引无效则在末尾添加
|
// 如果索引无效则在末尾添加
|
||||||
if (index < 0 || index > listView.Items.Count)
|
if (index < 0 || index > listView.Items.Count)
|
||||||
@@ -155,7 +155,7 @@ namespace SpineViewer.Controls
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var spine = Spine.SpineObject.New(version, skelPath);
|
var spine = SpineObject.New(version, skelPath);
|
||||||
var preview = spine.Preview;
|
var preview = spine.Preview;
|
||||||
lock (Spines) { spines.Add(spine); }
|
lock (Spines) { spines.Add(spine); }
|
||||||
spinePropertyWrappers[spine.ID] = new(spine);
|
spinePropertyWrappers[spine.ID] = new(spine);
|
||||||
|
|||||||
Reference in New Issue
Block a user