public void FireOnClick() { if (OnClick != null) { ButtonEventArg arg = new ButtonEventArg(Link); OnClick(this, arg); } }
void Button_OnClick(object sender, ButtonEventArg e) { if (e.Link == "Ok") { Result = PopupResult.Ok; } else if (e.Link == "Yes") { Result = PopupResult.Yes; } else if (e.Link == "No") { Result = PopupResult.No; } FireOnResult(); }