Пример #1
0
        void CreateEncodeTables()
        {
            int customerCounter = 1;

            foreach (object value in fieldCustomer.GetUniqueValues())
            {
                ProductEncodeTable.Add(value.ToString(), "Customer" + customerCounter++);
            }

            int countryCounter = 1;

            foreach (object value in fieldCountry.GetUniqueValues())
            {
                CategoryEncodeTable.Add(value.ToString(), "Country" + countryCounter++);
            }
        }
        void CreateEncodeTables()
        {
            int productCounter = 1;

            foreach (object value in fieldProductName.GetUniqueValues())
            {
                ProductEncodeTable.Add(value.ToString(), "P" + productCounter++);
            }

            int categoryCounter = 1;

            foreach (object value in fieldCategoryName.GetUniqueValues())
            {
                CategoryEncodeTable.Add(value.ToString(), "C" + categoryCounter++);
            }
        }