Пример #1
0
 public void FireOnClick()
 {
     if (OnClick != null)
     {
         ButtonEventArg arg = new ButtonEventArg(Link);
         OnClick(this, arg);
     }
 }
Пример #2
0
        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();
        }