예제 #1
0
 public void ShowTip(string content)
 {
     if (this.isPickedItem)
     {
         return;
     }
     isTipShow = true;
     tip.Show(content);
 }
예제 #2
0
        protected virtual void DealEvent()
        {
            BaseException ex = SuccessException.Singleton;

            try
            {
                var _event = EventName;
                if (!String.IsNullOrEmpty(_event))
                {
                    if (handlers.ContainsKey(_event))
                    {
                        handlers[_event](GetParameters());
                    }
                    else
                    {
                        ex = new BaseException();
                    }
                }
                else
                {
                    ex = null;
                }
            }
            catch (BaseException bex)
            {
                ex = bex;
            }
            catch (Exception e)
            {
                ex = new BaseException(e);
            }

            if (RequestIsAjax)
            {
                Response.Write(ex.ClientTip);
                Response.End();
            }
            else
            {
                if (Tip != null)
                {
                    Tip.Show(ex);
                }
            }
        }
예제 #3
0
        private void UnosTipaBtn_Click(object sender, RoutedEventArgs e)
        {
            Tip t = new Tip();

            t.Show();
        }
예제 #4
0
        private void Tip_Click(object sender, RoutedEventArgs e)
        {
            Tip s = new Tip(this);

            s.Show();
        }