duheng
2025-03-31 be65218617cab71a90a9a05cf488fbb6e206b5c5
WinFrmUI/Yw.WinFrmUI.Phart.Core/99-temp/Clipboard/ClipboardTextHelper.cs
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Yw.WinFrmUI.Phart
namespace Yw.WinFrmUI.Phart
{
    /// <summary>
    /// 剪切板文本辅助类
@@ -87,19 +81,19 @@
            var text = Clipboard.GetText();
            if (string.IsNullOrEmpty(text))
                return null;
            if(neglectList != null && neglectList.Count>0)
            if (neglectList != null && neglectList.Count > 0)
            {
                neglectList.ForEach(x =>
                {
                    text = text.Replace(x, "");
                });
            }
            var rows = text.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries).ToList();
            if (rows.Count < 1)
                return null;
            var list = new List<List<double?>>();
            foreach (var row in rows)
@@ -113,7 +107,7 @@
                        r = null;
                    }
                    else
                    {
                    {
                        double d;
                        if (double.TryParse(x, out d))
                        {
@@ -154,7 +148,7 @@
            }
            return colsList;
        }
    }