Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 protected ConfigPLCFacade(ConfigPLCModel model) : base(model)
 {
 }