Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public int ScriptDataLoad(string path)
        {
            textFileList.Clear();

            int ret = -1;

            if (Directory.Exists(path))
            {
                string[] textPath = Directory.GetFiles(path);

                foreach (var tmp in textPath)
                {
                    var data = new scriptText();
                    data.Load(tmp);
                    textFileList.Add(data);
                }
            }

            return(ret);
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public int TakeDataLoad(string path)
        {
            this.takeCheckData.takeDataDic.Clear();

            int ret = -1;

            if (Directory.Exists(path))
            {
                string[] textPath = Directory.GetFiles(path);

                foreach (var tmp in textPath)
                {
                    var data = new scriptText();
                    data.Load(tmp);

                    this.takeCheckData.Load(tmp);
                }
            }

            return(ret);
        }