diff --git a/SunnyUI/Charts/UILineChart.cs b/SunnyUI/Charts/UILineChart.cs index 5d8ab021..e68d27f3 100644 --- a/SunnyUI/Charts/UILineChart.cs +++ b/SunnyUI/Charts/UILineChart.cs @@ -32,6 +32,7 @@ * 2022-01-09: V3.1.0 双坐标轴支持选区域缩放 * 2022-02-09: V3.1.0 增加图线隐藏 * 2022-04-19: V3.1.5 关闭Smooth绘制,数值差距大或者持续缩放会出错 + * 2022-07-11: V3.2.1 修改两个点时可以不显示连接线 ******************************************************************************/ using System; @@ -455,15 +456,15 @@ namespace Sunny.UI return; } - if (series.Points.Count == 2) - { - using (Pen pen = new Pen(color, series.Width)) - { - g.DrawTwoPoints(pen, series.Points[0], series.Points[1], DrawRect); - } - - return; - } + //if (series.Points.Count == 2) + //{ + // using (Pen pen = new Pen(color, series.Width)) + // { + // g.DrawTwoPoints(pen, series.Points[0], series.Points[1], DrawRect); + // } + // + // return; + //} if (series.ShowLine || series.Symbol == UILinePointSymbol.None) { diff --git a/SunnyUI/Common/UFastLZ.cs b/SunnyUI/Common/UFastLZ.cs index 38b66fad..84ada65f 100644 --- a/SunnyUI/Common/UFastLZ.cs +++ b/SunnyUI/Common/UFastLZ.cs @@ -318,20 +318,20 @@ namespace Sunny.UI } /// - /// 从系统资源中保存字体文件 + /// 从系统资源中保存文件 /// - /// 字体文件名 + /// 文件名 /// 资源名称 private static void CreateResourceToFile(string file, string resource) { if (!File.Exists(file)) { - Stream fontStream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(resource); - if (fontStream != null) + Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(resource); + if (stream != null) { - byte[] buffer = new byte[fontStream.Length]; - fontStream.Read(buffer, 0, (int)fontStream.Length); - fontStream.Close(); + byte[] buffer = new byte[stream.Length]; + stream.Read(buffer, 0, (int)stream.Length); + stream.Close(); File.WriteAllBytes(file, buffer); }