private void DeleteProductRecord()
        {
            if (!CheckFields())
            {
                return;
            }

            var product = ((ProductModel)selectedRow);

            bool result = DBAccessHelper.DeleteProduct(product.ID);

            // delete failed
            if (!result)
            {
                MessageBox.Show("Record could not be deleted!", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                return;
            }

            // delete was a success
            ClearForm();
        }