using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsFormsApp1.entity { class GoodsClass { private int id; private String name; private bool selected; public int Id { get { return id; } set { id = value; } } public String Name { get { return name; } set { name = value; } } public bool Selected { get { return selected; } set { selected = value; } } } }