/// <summary>
 /// Products the edit.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="MouseButtonEventArgs"/> instance containing the event data.</param>
 private void ProductEdit(object sender, MouseButtonEventArgs e)
 {
     var entity = _productViewModel.ProductModelSelectedItem;
     if (e.Device.Target is CheckBox) return;
     if (entity == null) return;
     var pwindow = new ProductEditorWindow(entity);
     pwindow.WTitle = LocalizationSearch.GetString("ProductEditorWindow_EditProduct");
     pwindow.Show();
     pwindow.Topmost = true;
 }
 /// <summary>
 /// Creates the product.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void CreateProduct(object sender, RoutedEventArgs e)
 {
     var entity = new ProductModel();
     var pwindow = new ProductEditorWindow(entity);
     pwindow.WTitle = LocalizationSearch.GetString("ProductEditorWindow_CreateProduct");
     pwindow.Show();
 }