private void SaveExecute()
        {
            try
            {
                Product.Stored = Stored;

                if ((bool)Product.Stored == oldStoredValue)
                {
                    string textToWrite1 = String.Format("You didn't make any changes.");
                    eventObject.OnActionPerformed(textToWrite1);
                    productDetail.Close();
                    Stored = false;
                    return;
                }

                if ((bool)Product.Stored)
                {
                    if (StoreCount + (int)Product.Amount > 100)
                    {
                        string textToWrite1 = String.Format("You can't store this product there is not" +
                                                            " enough space in the store.");
                        eventObject.OnActionPerformed(textToWrite1);
                        Stored = false;
                        return;
                    }
                }
                dataService.EditProduct(Product);
                IsUpdateProduct = true;
                if ((bool)Product.Stored)
                {
                    string textToWrite = String.Format("You succesfully stored {0} {1}.",
                                                       Product.Amount, Product.ProductName);
                    eventObject.OnActionPerformed(textToWrite);
                    StoreCount += (int)Product.Amount;
                    Stored      = false;
                    productDetail.Close();

                    return;
                }

                if (!(bool)Product.Stored && oldStoredValue == true)
                {
                    string textToWrite = String.Format("You succesfully unstored {0} {1}.",
                                                       Product.Amount, Product.ProductName);
                    eventObject.OnActionPerformed(textToWrite);
                    StoreCount -= (int)Product.Amount;
                    Stored      = false;
                    productDetail.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }