Browse Source

11

样式分支
fyf 2 years ago
parent
commit
ae699a04a0
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      BPASmartClient.ScreenLib/Helper/Main.cs

+ 19
- 0
BPASmartClient.ScreenLib/Helper/Main.cs View File

@@ -259,6 +259,25 @@ namespace BPASmartClient.ScreenLib
{
}
}
else
{
string text = System.IO.File.ReadAllText(name);
if (text.Replace("\r\n", "") != html)
{
try
{
using (StreamWriter sw = new StreamWriter(name, false, System.Text.Encoding.GetEncoding("UTF-8"))) //保存地址
{
sw.WriteLine(html);
sw.Flush();
sw.Close();
}
}
catch
{
}
}
}
view2.Source = new Uri(name);
}
/// <summary>


Loading…
Cancel
Save