添加项目文件。

This commit is contained in:
GG Z
2026-02-28 21:01:57 +08:00
parent 9fe4e5a9aa
commit 7a229067cc
175 changed files with 18060 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using System.Collections.Generic;
using System.Windows.Input;
using Mstn.Toolkit.External;
namespace MSDevTool.ViewModels
{
public class ObjectViewModel
{
public List<ClassPropValue> PropValues { get; set; }
RelayCommand showElementCommand;
public ICommand ShowObjectCommand => showElementCommand ??= new RelayCommand(ShowObject, b => true);
private void ShowObject(object obj)
{
if (obj is ClassPropValue model && model.PropValue?.ToString() != "<null>")
{
var type = model.PropValue.GetType();
if (type.IsClass || (type.IsValueType && !type.IsEnum && !type.IsPrimitive))
{
ObjectViewModel viewModel = new ObjectViewModel() { PropValues = SnoopHelpers.GetClassPropDictionary(model.PropValue) };
ObjectView view = new ObjectView(viewModel);
view.Title = model.PropName;
view.Show();
}
}
}
}
}