public LevelMeter()
        {
            this.InitializeComponent();

            // Insert code required on object creation below this point.

            LedArray = new SingleLed[10];

            for (int i = 0; i < 10; i++)
            {
                LedArray[i] = new SingleLed();
                LayoutRoot.Children.Add(LedArray[i]);
            }

            LedArray[0].LedColor = LedColors.Green;
            LedArray[1].LedColor = LedColors.Green;
            LedArray[2].LedColor = LedColors.Green;
            LedArray[3].LedColor = LedColors.Green;
            LedArray[4].LedColor = LedColors.Green;
            LedArray[5].LedColor = LedColors.Orange;
            LedArray[6].LedColor = LedColors.Orange;
            LedArray[7].LedColor = LedColors.Orange;
            LedArray[8].LedColor = LedColors.Red;
            LedArray[9].LedColor = LedColors.Red;


            level = 0;
        }
        public LevelMeter()
        {
            this.InitializeComponent();

            // Insert code required on object creation below this point.

            LedArray = new SingleLed[10];

            for (int i = 0; i < 10; i++)
            {
                LedArray[i] = new SingleLed();
                LayoutRoot.Children.Add(LedArray[i]);
            }

            LedArray[0].LedColor = LedColors.Green;
            LedArray[1].LedColor = LedColors.Green;
            LedArray[2].LedColor = LedColors.Green;
            LedArray[3].LedColor = LedColors.Green;
            LedArray[4].LedColor = LedColors.Green;
            LedArray[5].LedColor = LedColors.Orange;
            LedArray[6].LedColor = LedColors.Orange;
            LedArray[7].LedColor = LedColors.Orange;
            LedArray[8].LedColor = LedColors.Red;
            LedArray[9].LedColor = LedColors.Red;

            level = 0;
        }