protected void OnReadTagsClicked(ReadTagsClickedEventArgs e) { if (ReadTagsClicked != null) { ReadTagsClicked(this, e); } }
private void stockInControl_ReadTagsClicked(object sender, ReadTagsClickedEventArgs e) { RemoveAllControls(); StockIn stockIn = e.StockIn; IList <Product> products = ProductService.GetProductsBuStockIn(stockIn); // 将products转成readerControl需要的格式 IList <ReaderProductViewModel> productViewModels = ReaderProductViewModel.GetByProducts(products); AddReaderControl(productViewModels); }