Ejemplo n.º 1
0
        private void HyperlinkClick(Hyperlink sender, HyperlinkClickEventArgs args)
        {
            HyperLinkEventArgs arg = new HyperLinkEventArgs(args.OriginalSource)
            {
                Tag = sender.Name == "user"? Item.UserLink : Item.TargetLink
            };

            OnClick(sender, arg);
        }
Ejemplo n.º 2
0
        private void HyperLink_Click(Hyperlink sender, HyperlinkClickEventArgs args)
        {
            HyperLinkEventArgs arg;

            if (NoteId == null)
            {
                arg = new HyperLinkEventArgs(args.OriginalSource)
                {
                    Tag = new Tuple <string, string>(item1: "user", item2: SplitUserId(sender.Name))
                };
            }
            else
            {
                arg = new HyperLinkEventArgs(args.OriginalSource)
                {
                    Tag = new Tuple <string, string, string>(item1: "user", item2: SplitUserId(sender.Name), item3: NoteId)
                };
            }
            if (OnClick != null)
            {
                OnClick(sender, arg);
            }
        }
 private void HyperlinkClick(Hyperlink sender, HyperlinkClickEventArgs args)
 {
     HyperLinkEventArgs arg = new HyperLinkEventArgs(args.OriginalSource) { Tag = sender.Name == "user"? Item.UserLink : Item.TargetLink };
     OnClick(sender, arg);
 }
 private void HyperLink_Click(Hyperlink sender, HyperlinkClickEventArgs args)
 {
     HyperLinkEventArgs arg;
     if (NoteId == null)
     {
         arg = new HyperLinkEventArgs(args.OriginalSource) { Tag = new Tuple<string, string>(item1: "user", item2: SplitUserId(sender.Name)) };
     }
     else
     {
         arg = new HyperLinkEventArgs(args.OriginalSource) { Tag = new Tuple<string, string, string>(item1: "user", item2: SplitUserId(sender.Name), item3: NoteId) };
     }
     if (OnClick != null)
     {
         OnClick(sender, arg);
     }
 }