//private FaceTrainer _trainer;

        #region Constructor & Properties
        public SaveFaceDialog()
        {
            _dataClient = new DataStoreAccess(@"C:\data\db\SQLite-Faces.db");
            List <string> usernames = _dataClient.GetAllUsernames();

            if (usernames != null)
            {
                foreach (var name in usernames)
                {
                    foreach (var face in _dataClient.CallFaces(name))
                    {
                        _savedFaces.Add(StreamConverter.ByteToBitmap(face.Image));
                    }
                }
            }

            _detector = new JAVSFaceCropper();
            _trainer  = new TrainingEngine();
            _camera   = new CameraManager();
            _camera.SetDetector(_detector);
            _cameraIsReady = _camera.IsReady();

            if (_cameraIsReady)
            {
                _camera.Start();
                _camera.NewFrame += AttachFrames;
            }

            InitializeComponent();
            DataContext = this;
        }
        void LoadFaces()
        {
            List <string> usernames = _dataClient.GetAllUsernames();

            if (usernames != null)
            {
                foreach (var name in usernames)
                {
                    foreach (var face in _dataClient.CallFaces(name))
                    {
                        _savedFaces.Add(StreamConverter.ByteToBitmap(face.Image));
                    }
                }
            }
        }