public void sayiyiAzalt(IModel model, ModelEventArgs e) { textBox1.Text = "" + e.newval; }
//Bu event IModelObserver arayüzünün gerçeklenmesidir. //Model' deki veri değiştiğinde bu event yakalanmış olur. public void sayiyiArttir(IModel m, ModelEventArgs e) { textBox1.Text = "" + e.newval; }
// This event is implementation from IModelObserver which will be invoked by the // Model when there is a change in the value with ModelEventArgs which is derived // from the EventArgs. The IModel object is the one from which invoked this. public void UpdateDisplay(IModel m, ModelEventArgs e) { textBox1.Text = string.Empty + e.newValue; }