public void Update(object ob) { CkickActive sInfo = (CkickActive)ob; if (sInfo.active == true) { counterA++; textbox1.Text = counterA.ToString(); } else { counterD++; textbox2.Text = counterD.ToString(); } }
public Click(CheckBox checkbox) { this.checkbox = checkbox; observers = new List <IObserver>(); sInfo = new CkickActive(); }