コード例 #1
0
        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();
        }
コード例 #2
0
 private void StockDoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         var stockManager = new StockManager();
         _dataTable.Rows.Clear();
         e.Result = stockManager.GetStockDataTable(_dataTable);
     }
     catch (Exception)
     {
         //
     }
 }