|
@@ -7,6 +7,7 @@ using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Data.SQLite;
|
|
|
using System.Diagnostics;
|
|
|
+using System.IO;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
@@ -78,6 +79,22 @@ namespace MOKA_Factory_Tools
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ public static RokuCustomer GetRokuFileInfo()
|
|
|
+ {
|
|
|
+ string fileName = LocalPath.localpath + "roku.info";
|
|
|
+ if (File.Exists(fileName))
|
|
|
+ {
|
|
|
+ Log.WriteInfoLog(string.Format("using roku.info = {0}", fileName));
|
|
|
+ StreamReader file = File.OpenText(fileName);
|
|
|
+ RokuCustomer roku = GetRokuInfo(file.ReadToEnd());
|
|
|
+ file.Close();
|
|
|
+
|
|
|
+ return roku;
|
|
|
+ }
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|