protected virtual void OnContactUpdated(ContactStatusEventArgs args) { EventHandler <ContactStatusEventArgs> handler = ContactUpdated; if (handler != null) { handler(this, args); } }
protected virtual void OnContactStatusChanged(object o, ContactStatusEventArgs args) { EventHandler <ContactStatusEventArgs> handler = ContactStatusChanged; if (handler != null) { handler(o, args); } }
private void OnContactUpdated (object sender, ContactStatusEventArgs args) { this.Name = String.Format ("{0} ({1})", ContactName, ContactStatus); }