private void btn_stop_Click(object sender, EventArgs e) { var row = this.dataGridView1.CurrentRow; if (row != null && row.Tag != null && row.Tag.ToString() != "") { try { var cls_no = row.Tag.ToString(); var item = all_list.FirstOrDefault(d => d.item_clsno == cls_no); item.is_stop = "1"; IBLL.IGoods bll = new BLL.Goods(); bll.StopCls(cls_no); this.pageChanged(); } catch (Exception ex) { Log.writeLog("frmGoodsCls->btn_stop_Click()", ex.ToString(), null); new MsgForm(ex.GetMessage()).ShowDialog(); } } }