private void btnAddSellThing_Click(object sender, EventArgs e)
 {
     st = new SellThing()
     {
         SellNo    = txtSellNo.Text,
         SellName  = txtSellName.Text,
         SellPrice = Convert.ToDecimal(txtSellPrice.Text),
         format    = Convert.ToString(txtformat.Text),
         Stock     = Convert.ToInt32(txtStock.Text),
     };
     SellThingManager.InsertSellThing(st);
     MessageBox.Show("添加商品成功");
     dgvSellthing.DataSource = SellService.SelectSellThingAll();
 }
 public static List <SellThing> SelectSellThingAll()
 {
     return(SellService.SelectSellThingAll());
 }