private void buttonCalc_Click(object sender, EventArgs e)
 {
     if (pictureView.Image != null)
     {
         feat.Img = new Bitmap(pictureView.Image);
         feat.Analyze();
         LogicLayer.Type k = tree.stepOne(feat);
         SetResult(k);
     }
 }
 private void SetResult(LogicLayer.Type k)
 {
     if (k == LogicLayer.Type.Clipart)
     {
         labelResult.Text = "The image is clipart.";
     }
     else
     {
         labelResult.Text = "The image is a picture.";
     }
     label1.Text = "Based on:";
     label2.Text = (Math.Round(100 * feat.DifferentColors)) / 100.0 + "% of the pixels having different colors.";
     label3.Text = (Math.Round(100 * feat.MaxPercentage)) / 100.0 + "% of the pixels are the most occuring color.";
     if (feat.Transparency)
     {
         label4.Text = "There being transparent pixel(s) in the image.";
     }
     else
     {
         label4.Text = "There not being transparent pixel(s) in the image.";
     }
 }