Exemple #1
0
        public override void Load()
        {
            string path = PathHelp.GetFullPaltformPath(mStrPath, false);

            if (System.IO.File.Exists(path))
            {
                System.IO.FileStream stream = new System.IO.FileStream(path, System.IO.FileMode.Open);
                if (stream != null)
                {
                    byte[] content = new byte[stream.Length];
                    stream.Read(content, 0, (int)stream.Length);

                    IsLoaded = true;

                    string strData = CommonTool.BytesToUtf8(content);
                    ParseData(strData);
                    stream.Close();
                }
            }
        }