private void btnSaveAreaPLC_Click(object sender, EventArgs e) { foreach (DataRowView r in _bindingSource) { ConfigPLCModel configPLC = ConfigPLCBO.Instance.FindByPK(TextUtils.ToInt(r.Row["ID"])) as ConfigPLCModel; configPLC.AreaDelay = TextUtils.ToString(r.Row["AreaDelay"]); configPLC.AreaRisk = TextUtils.ToString(r.Row["AreaRisk"]); ConfigPLCBO.Instance.Update(configPLC); } MessageBox.Show("Config address area successfully!", "Notice", MessageBoxButtons.OK); grvAreaPLC.DataSource = _bindingSource; }
protected ConfigPLCFacade(ConfigPLCModel model) : base(model) { }