protected virtual void OnBotonPulsado(BotonPulsadoEventArgs e) { BotonPulsadoEventHandler handler = BotonPulsado; if (handler != null) { handler(this, e); } }
private void bbqBuscarQuitar_BotonPulsado(object sender, BotonPulsadoEventArgs e) { Control texto = ((Control)sender).Tag as Control; this.oldValue = texto.Text; //if (e.Boton == 1) //texto.Text = ClienteCr.Instancia.BuscarObjeto(ref this.objetoLocal, short.Parse(texto.Tag.ToString())); //else //texto.Text = ClienteCr.Instancia.QuitarObjeto(ref this.objetoLocal, short.Parse(texto.Tag.ToString())); if (!object.Equals(this.oldValue, texto.Text)) { this.cambiosPendientes = true; } }