Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanthinker committed Feb 28, 2024
1 parent 59ea889 commit f5f1452
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Log2Window/UI/TreeViewLoggerView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public ILoggerView AddNew(string text, LoggerItem logger)
temp = AddNewInner(text, logger);
}
return temp;
}
}

//°´ text ÅÅÐòÌí¼Ó.
TreeNode AddNode(TreeNodeCollection nodes, string key, string text)
Expand All @@ -85,8 +85,7 @@ TreeNode AddNode(TreeNodeCollection nodes, string key, string text)

for (int i = 0; i < nodes.Count; i++)
{
//忽略区域和字母大小写比较大小
if (string.CompareOrdinal(nodes[i].Text, text) > 0)
if (string.Compare(nodes[i].Text, text, StringComparison.InvariantCultureIgnoreCase) > 0)
{
firstBiggerThanNewIndex = i;
break;
Expand Down Expand Up @@ -142,7 +141,7 @@ public void Remove(string text)
public void Sync()
{
var node = _node;
while(node != null)
while (node != null)
{
node.Expand();
node = node.Parent;
Expand Down

0 comments on commit f5f1452

Please sign in to comment.