private void BtnSave_Click(object sender, RoutedEventArgs e)
 {
     if (FormCreateMode)
     {
         product.ProductCategory = (ProductCategory)CategoryComboBoxProductDetail.SelectedItem;
         gateway.AddProduct(product);
     }
     else
     {
         product.ProductCategory = (ProductCategory)CategoryComboBoxProductDetail.SelectedItem;
         gateway.UpdateProduct(product);
     }
     this.Close();
 }