public AddPurchaseView(string animationName, TabHelper hlp) { InitializeComponent(); Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR"); _tabHlp = hlp; _productsSelSelected = new List<ProduitsSel>(); //produit = new Products(); _productManger = new ProductManger(); _tvaClient = new TvaClient(); TvaComboBox.ItemsSource = _tvaClient.GetTvaValues(); _suppliersManager = new SuppliersManager(); _productManger.ResetUnitsOnOrder(); _productSelected = new List<Product>(); if (string.IsNullOrEmpty(animationName)) return; var animation = (Storyboard) Application.Current.Resources[animationName]; LayoutRoot.BeginStoryboard(animation); }