示例#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();
            }
        }
示例#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();
            }
        }
示例#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();
            }
        }
示例#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();
            }
        }