private void btnInTheoDon_Click(object sender, EventArgs e) { try { //var db = new MyDBContextDataContext(); //var lst = (from s in db.tbBarcodeStickers where s.SCD == sCDTextEdit.Text select s).ToList(); ; var rp = new rpBangTheoDoiBarcode(); rp.DataSource = bsCtr.BarcodeSticker_SCD(sCDTextEdit.Text); //rp.DataMember = "Table"; rp.databingding(); rp.ShowRibbonPreview(); } catch (Exception) { // ignored } }
private void btnIn_Click(object sender, EventArgs e) { try { var bc = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, colBarcode).ToString(); //var db = new MyDBContextDataContext(); //var lst = (from s in db.tbBarcodeStickers where s.SCD == sCDTextEdit.Text && s.Barcode == bc select s).ToList(); ; var rp = new rpBangTheoDoiBarcode(); rp.DataSource = bsCtr.BarcodeSticker_SCD_Barcode(sCDTextEdit.Text, bc); //rp.DataMember = "Table"; rp.databingding(); rp.ShowRibbonPreview(); } catch (Exception) { // ignored } }