CtrlWnd.cs
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using HandyControl.Controls;
using HandyControl.Themes;
using HandyControl.Tools;
using Mind;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using FontStyle = System.Drawing.FontStyle;
namespace WpfMind
{
public partial class MainWindow
{
#region 属性字段
Stack<(string, JObject, DateTime time)> systemStack = new Stack<(string, JObject, DateTime time)>();
bool recalled = false;
MyJref myJref;
private bool isNodeOp = true;//增删时是true,其他操作是false
private bool isPainting = false;
public bool isediting = true;
//public bool ischangingstyle = false;
public delegate void TmpChanged(object sender);
public PropertyGridDemoModel crtModel;
#endregion
#region 节点增删
private void Btn_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
RoundButton s = sender as RoundButton;
if (e.KeyData == System.Windows.Forms.Keys.Tab)//子节点
{
AddSubTopic(s.Jref);
}
if (e.KeyData == System.Windows.Forms.Keys.Enter)//兄弟节点
{
AddBroTopic(s.Jref);
}
if (e.KeyData == System.Windows.Forms.Keys.Delete)
{
DelTopic(s.Jref);
}
}
private void AddSubTopic(JObject newNodeJref)
{
if (isLeaf(newNodeJref))
{
newNodeJref.Add(new JProperty("children", new JObject(new JProperty("attached", new JArray()))));
}
var children = newNodeJref.SelectToken("children.attached") as JArray;
JObject onenewnode = new JObject();
后面还有 362 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。