Beispiel #1
0
        protected virtual void OnFavoriteClick(FavoriteEventArgs e)
        {
            EventHandler <FavoriteEventArgs> de = (EventHandler <FavoriteEventArgs>)FavoriteClickAction;

            if (de != null)
            {
                de(this, e);
            }
        }
Beispiel #2
0
        protected override void OnMouseClick(MouseEventArgs e)
        {
            base.OnMouseClick(e);
            if (HoverIndex >= 0)
            {
                string businessid = (string.IsNullOrEmpty(BusinessIdMember)) ? "" : FilterItemOnProperty(il[HoverIndex], businessidmember.BindingField).ToString();

                if (FavoriteHover)
                {
                    FavoriteEventArgs fEA = new FavoriteEventArgs(businessid.Trim(), (string.IsNullOrEmpty(DisplayMember)) ? "" : FilterItemOnProperty(il[HoverIndex], DisplayMember).ToString());
                    OnFavoriteClick(fEA);
                }
                else
                {
                    businessid = (string.IsNullOrEmpty(BusinessIdMember)) ? "" : FilterItemOnProperty(il[HoverIndex], businessidmember.BindingField).ToString();
                    ProjectMenuEventArgs projectmenuEA = new ProjectMenuEventArgs(1, HoverIndex, businessid, (string.IsNullOrEmpty(DisplayMember)) ? "" : FilterItemOnProperty(il[HoverIndex], DisplayMember).ToString(), (string.IsNullOrEmpty(CommentMember)) ? "" : FilterItemOnProperty(il[HoverIndex], commentMember.BindingField).ToString());
                    if (IsSingleClickUsed)
                    {
                        projectmenuEA.SelectType = 2;
                    }
                    OnProjectMenuClick(projectmenuEA);
                }
            }
        }