/// <summary>
 /// Saves the current frame to the database
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void savePictureToDBToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (videoSourcePlayer.IsRunning)
     {
         Bitmap MyCurrentImage = videoSourcePlayer.GetCurrentVideoFrame();
         Facial_Recognition_Library.ImageManagement.ImageManager.SaveImageToFileSystem(MyCurrentImage, $@"W:\img.png");
         // we want to create a new dialog for entry of information associated with the face.
         frmFaceAttributes fa = new frmFaceAttributes(AddInformationToNewImage: true);
         fa.ShowDialog();
     }
     else
     {
         tsSLErrors.Text    = "You must first start the camera before taking a picture.";
         tsSLErrors.Visible = true;
     }
 }
        private void reviewAllAttributesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //TODO: Move to Library : reviewAllAttributesToolStripMenuItem_Click :  method contents can be moved to library to facilitate code reuse.
            var             DataRows = this.dgvImagesInDb.SelectedRows;
            DataGridViewRow dr       = null;

            if (DataRows.Count > 0)
            {
                dr = DataRows[0];
            }
            if (dr == null)
            {
                var rowIndex = this.dgvImagesInDb.SelectedCells[0].RowIndex;
                dr = this.dgvImagesInDb.Rows[rowIndex];
            }
            string strfaceSystemID   = dr.Cells[1].Value.ToString();
            string strfaceAttributes = dr.Cells[3].Value.ToString();

            frmFaceAttributes frmFA = new frmFaceAttributes(Guid.Parse(strfaceSystemID), strfaceAttributes);

            frmFA.ShowDialog();
        }