示例#1
0
文件: BotonBQ.cs 项目: ferbenor/moro
        protected virtual void OnBotonPulsado(BotonPulsadoEventArgs e)
        {
            BotonPulsadoEventHandler handler = BotonPulsado;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#2
0
文件: Clientes.cs 项目: ferbenor/moro
        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;
            }
        }