Example #1
0
        private List<Dictionary<string, string>> tempList = null; //临时存储csv对象加载下的信息

        #endregion Fields

        #region Constructors

        /// <summary>
        /// 默认构造函数,打开该路径下的"Name.csv"文件。
        /// </summary>
        /// <returns></returns>
        /// <summary>
        /// 
        /// </summary>
        /// <param name="NameFilePath"></param>
        public RandomName(string FileStr, bool isCSVFail = false)
        {
            csvmod = new CSVMod(FileStr, isCSVFail);
            NameContainer = new Dictionary<int, List<string>>();
            firstNameList = new List<string>();
            lastNameList = new List<string>();
            InitNameDictionary();
        }
Example #2
0
        private static int ClickCounter     = 1;                       //记录用户选择名字(点击按钮)的次数

        /// <summary>
        /// 默认构造函数,打开该路径下的"Name.csv"文件。
        /// </summary>
        /// <returns></returns>
        /// <summary>
        ///
        /// </summary>
        /// <param name="NameFilePath"></param>
        public RandomName(string FileStr, bool isCSVFail = false)
        {
            csvmod        = new CSVMod(FileStr, isCSVFail);
            NameContainer = new Dictionary <int, List <string> >();
            firstNameList = new List <string>();
            lastNameList  = new List <string>();
            InitNameDictionary();
        }
Example #3
0
 //private List<Dictionary<string,string>> tempList = null;
 public DataUnit(string csvStr, bool isCSVFile = false)
 {
     csvMod = new CSVMod(csvStr, isCSVFile);
     csvMod.LoadCsvStr();
 }
Example #4
0
        //private List<Dictionary<string,string>> tempList = null;

        public DataUnit(string csvStr, bool isCSVFile = false)
        {
            csvMod = new CSVMod(csvStr, isCSVFile);
            csvMod.LoadCsvStr();
        }