//Click color code method button
        private void colorCodeMethod_click(object sender, RoutedEventArgs e)
        {
            string colorcode = "colorcode";

            setPageIndex(0);
            colorCodeResultFiles.Clear();
            ManhattanDistance distance = new ManhattanDistance();

            if (selecteImageFilePath == null)
            {
                MessageBox.Show("Please select one Image before we proceed");
                return;
            }
            List <ResultCBIR> sortedDistance = distance.computeManhattanDistance(selecteImageFilePath,
                                                                                 allimageDetailIntensityMethod, colorcode);

            foreach (ResultCBIR fieldid in sortedDistance)
            {
                colorCodeResultFiles.Add(fieldid.imageid);
            }
            renderImage(colorCodeResultFiles);
        }