public HandInterfaceWindow(IHandDataSource handDataSource, IImageDataSource imageDataSource)
            : this()
        {
            //var brush = new SolidColorBrush(Color.FromArgb(160, 255, 255, 255));
            var brush = new SolidColorBrush(Color.FromArgb(0, 255, 255, 255));// transparent

            this.element       = new HandInterfaceElement();
            element.CharEnter += new System.Timers.ElapsedEventHandler(element_Tick);
            element.Reset     += new EventHandler(element_Reset);
            this.canvas.Children.Add(element);

            this.label       = CreateLabel("Please identify...", brush, 50, 50);
            this.labelCode   = CreateLabel("", brush, 50, 80);
            this.labelAccess = CreateLabel("", brush, 50, 110);

            this.textBlock           = new TextBlock();
            textBlock.TextWrapping   = TextWrapping.Wrap;
            textBlock.Text           = string.Empty;
            this.labelData           = CreateLabel(textBlock, brush, 50, 140);
            this.labelData.MaxWidth  = 540;
            this.labelData.MaxHeight = 320;

            handDataSource.NewDataAvailable  += new NewDataHandler <HandCollection>(handDataSource_NewDataAvailable);
            imageDataSource.NewDataAvailable += new NewDataHandler <ImageSource>(imageDataSource_NewDataAvailable);
        }
        public HandInterfaceWindow(IHandDataSource handDataSource, IImageDataSource imageDataSource)
            : this()
        {
            //var brush = new SolidColorBrush(Color.FromArgb(160, 255, 255, 255));
            var brush = new SolidColorBrush(Color.FromArgb(0, 255, 255, 255));// transparent

            this.element = new HandInterfaceElement();
            element.CharEnter += new System.Timers.ElapsedEventHandler(element_Tick);
            element.Reset += new EventHandler(element_Reset);
            this.canvas.Children.Add(element);

            this.label = CreateLabel("Please identify...", brush, 50, 50);
            this.labelCode = CreateLabel("", brush, 50, 80);
            this.labelAccess = CreateLabel("", brush, 50, 110);

            this.textBlock = new TextBlock();
            textBlock.TextWrapping = TextWrapping.Wrap;
            textBlock.Text = string.Empty;
            this.labelData = CreateLabel(textBlock, brush, 50, 140);
            this.labelData.MaxWidth = 540;
            this.labelData.MaxHeight = 320;

            handDataSource.NewDataAvailable += new NewDataHandler<HandCollection>(handDataSource_NewDataAvailable);
            imageDataSource.NewDataAvailable += new NewDataHandler<ImageSource>(imageDataSource_NewDataAvailable);
        }