Beispiel #1
0
        private void Persist()
        {
            try {
                Product product = new Product();
                product.Category = Category;
                product.Id       = Id;
                product.Name     = Libelle;

                BusinessManager.Instance.EditProduct(product);
            } catch (Exception e)
            {
                ErrorMessage = e.Message;
                View.ErrorWindow errorWindow = new View.ErrorWindow();
                errorWindow.DataContext = this;
                errorWindow.ShowDialog();
            }
        }
Beispiel #2
0
        private void Persist()
        {
            try {
                Product product = new Product();
                product.Category    = Category;
                product.Id          = Id;
                product.Code        = Code;
                product.Name        = Libelle;
                product.Stock       = Stock;
                product.Price       = Prix;
                product.Description = Description;
                product.Active      = Actif;

                BusinessManager.Instance.EditProduct(product);
            } catch (Exception e)
            {
                ErrorMessage = e.Message;
                View.ErrorWindow errorWindow = new View.ErrorWindow();
                errorWindow.DataContext = this;
                errorWindow.ShowDialog();
            }
        }
Beispiel #3
0
        private void Persist()
        {
            try {
                Product product = new Product();
                product.Category = Category;
                product.Id = Id;
                product.Code = Code;
                product.Name = Libelle;
                product.Stock = Stock;
                product.Price = Prix;
                product.Description = Description;
                product.Active = Actif;

                BusinessManager.Instance.EditProduct(product);
            } catch (Exception e)
            {
                ErrorMessage = e.Message;
                View.ErrorWindow errorWindow = new View.ErrorWindow();
                errorWindow.DataContext = this;
                errorWindow.ShowDialog();
            }
        }
Beispiel #4
0
        private void Persist()
        {
            try {
                Product product = new Product();
                product.Category = Category;
                product.Id = Id;
                product.Name = Libelle;

                BusinessManager.Instance.EditProduct(product);
            } catch (Exception e)
            {
                ErrorMessage = e.Message;
                View.ErrorWindow errorWindow = new View.ErrorWindow();
                errorWindow.DataContext = this;
                errorWindow.ShowDialog();
            }
        }