Ejemplo n.º 1
0
 public void ShowTip(string content)
 {
     if (this.isPickedItem)
     {
         return;
     }
     isTipShow = true;
     tip.Show(content);
 }
Ejemplo n.º 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);
                }
            }
        }
Ejemplo n.º 3
0
        private void UnosTipaBtn_Click(object sender, RoutedEventArgs e)
        {
            Tip t = new Tip();

            t.Show();
        }
Ejemplo n.º 4
0
        private void Tip_Click(object sender, RoutedEventArgs e)
        {
            Tip s = new Tip(this);

            s.Show();
        }