主要更新了http相关的内容
This commit is contained in:
@@ -1,26 +1,10 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Channels;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
using System.Xml.Linq;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||
|
||||
namespace Ramitta
|
||||
{
|
||||
@@ -104,9 +88,9 @@ namespace Ramitta
|
||||
return node;
|
||||
}
|
||||
|
||||
public RadioButtonTreeNode AddRadioButtonNode(string text, string? tag = null,string? GroupName = null, bool isChecked = false, TreeNode? parent = null)
|
||||
public RadioButtonTreeNode AddRadioButtonNode(string text, string? tag = null, string? GroupName = null, bool isChecked = false, TreeNode? parent = null)
|
||||
{
|
||||
|
||||
|
||||
var RadioButton = new RadioButton()
|
||||
{
|
||||
Visibility = Visibility.Visible,
|
||||
@@ -285,8 +269,7 @@ namespace Ramitta
|
||||
// 清空现有数据
|
||||
Clear();
|
||||
|
||||
if (string.IsNullOrWhiteSpace(jsonContent))
|
||||
return;
|
||||
if (string.IsNullOrWhiteSpace(jsonContent)) return;
|
||||
|
||||
try
|
||||
{
|
||||
@@ -320,7 +303,7 @@ namespace Ramitta
|
||||
{
|
||||
case nameof(LabelTreeNode):
|
||||
newNode = CreateLabelTreeNode(nodeObject, text);
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case nameof(CheckboxTreeNode):
|
||||
@@ -437,7 +420,7 @@ namespace Ramitta
|
||||
ExpandNode(node);
|
||||
}
|
||||
}
|
||||
public void CollapseAll(object? sender=null, RoutedEventArgs? e=null)
|
||||
public void CollapseAll(object? sender = null, RoutedEventArgs? e = null)
|
||||
{
|
||||
foreach (var node in Nodes)
|
||||
{
|
||||
@@ -489,7 +472,7 @@ namespace Ramitta
|
||||
parent.Children.Add(node);
|
||||
}
|
||||
}
|
||||
private IEnumerable<TreeNode> GetAllNodes(IEnumerable<TreeNode>? nodes=null)
|
||||
private IEnumerable<TreeNode> GetAllNodes(IEnumerable<TreeNode>? nodes = null)
|
||||
{
|
||||
if (nodes == null) nodes = null;
|
||||
foreach (var node in nodes)
|
||||
|
||||
Reference in New Issue
Block a user