public StockView(string animationName) { InitializeComponent(); if (!string.IsNullOrEmpty(animationName)) { Storyboard animation = (Storyboard)Application.Current.Resources[animationName]; LayoutRoot.BeginStoryboard(animation); } LoadEmptyble(); _CategorysClient=new CategorysClient(); _productManger=new ProductManger(); _stockManager=new StockManager(); }
private void StockDoWork(object sender, DoWorkEventArgs e) { try { var stockManager = new StockManager(); _dataTable.Rows.Clear(); e.Result = stockManager.GetStockDataTable(_dataTable); } catch (Exception) { // } }