Exemplo n.º 1
0
        public void Update(object ob)
        {
            CkickActive sInfo = (CkickActive)ob;

            if (sInfo.active == true)
            {
                counterA++;
                textbox1.Text = counterA.ToString();
            }
            else
            {
                counterD++;
                textbox2.Text = counterD.ToString();
            }
        }
Exemplo n.º 2
0
 public Click(CheckBox checkbox)
 {
     this.checkbox = checkbox;
     observers     = new List <IObserver>();
     sInfo         = new CkickActive();
 }