private void button2_Click(object sender, EventArgs e) { BarCodeInfoBll barBll = new BarCodeInfoBll(); var bi = barBll.GetById(1); richTextBox1.Text = bi.ItemName; }