|
|
@@ -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> |
|
|
|