private void btn_start_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 = "0"; IBLL.IGoods bll = new BLL.Goods(); bll.StartCls(cls_no); this.pageChanged(); } catch (Exception ex) { Log.writeLog("frmGoodsCls->btn_start_Click()", ex.ToString(), null); new MsgForm(ex.GetMessage()).ShowDialog(); } } }