Dec 25, 2015

Create custom event

public event EventHandler FooterTextChanged;

private void RaiseFooterTextChanged()
{
    var handler = FooterTextChanged;
    if(handler == null)
        return;

    handler(this, EventArgs.Empty);
}

public override void txtSearch_TextChanged(object sender, EventArgs e)
{
    RaiseFooterTextChanged();
}

0 comments:

Post a Comment

Nam Le © 2014 - Designed by Templateism.com, Distributed By Templatelib