Beispiel #1
0
 private void FireListeners(Update update)
 {
     foreach (IViewUpdateListener listener in updateListeners)
     {
         listener.ReflectUpdate(update);
     }
 }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Update update = new Update();
            update.Name = nameField.Text;
            update.Data = dataField.Text;

            FireListeners(update);
        }
Beispiel #3
0
 public void ReflectUpdate(Update update)
 {
     this.model.Name = update.Name;
     this.model.Data = update.Data;
 }