private void ReadEigenvaluesButton_Clicked()
        {
            var dialog = new FingerprintDialog("Acquire Eigenvalues", "Can't acquire eigenvalues, try to place your finger flat on the sensor");

            byte[] eigenvalues = null;

            Task.Run(() =>
            {
                if (_fingerprintSensor.TryAcquireEigenvalues(out var values))
                {
                    eigenvalues = values.ToArray();

                    dialog.Cancel();
                }
                else
                {
                    dialog.CancelAndShowError();
                }
            });

            dialog.Show();

            if (eigenvalues != null)
            {
                var window = new DataDisplay("Eigenvalues", eigenvalues);

                WriteOut($"Eigenvalues:\n{Utils.ArrayDisplay(eigenvalues)}\n\n\n");

                Application.Run(window);
            }
        }
        private void ReadImageButton_Clicked()
        {
            var dialog = new FingerprintDialog("Acquire Image", "Can't acquire image, try to place your finger flat on the sensor");

            byte[] image = null;

            Task.Run(() =>
            {
                if (_fingerprintSensor.TryAcquireImage(out image))
                {
                    dialog.Cancel();
                }
                else
                {
                    dialog.CancelAndShowError();
                }
            });

            dialog.Show();

            if (image != null)
            {
                WriteOut($"Image:\n{Utils.ArrayDisplay(image)}\n\n\n");

                var window = new DataDisplay("Image", image.ToArray());

                Application.Run(window);
            }
        }