Пример #1
0
        /// <summary>
        /// Handles invocation of TextRowMarkupLinkClick events
        /// </summary>
        internal void DoTextRowMarkupLinkClickEvent(
            GridTextRow textRow, HyperLink hyperLink)
        {
            if (TextRowMarkupLinkClick != null)
            {
                GridTextRowMarkupLinkClickEventArgs ev = new GridTextRowMarkupLinkClickEventArgs(
                    textRow.GridPanel, textRow, hyperLink.Name, hyperLink.HRef);

                TextRowMarkupLinkClick(this, ev);
            }
        }
Пример #2
0
        /// <summary>
        /// Handles invocation of PreRenderTextRow events
        /// </summary>
        internal bool DoPreRenderTextRowEvent(Graphics g,
            GridTextRow gridTextRow, RenderParts parts, Rectangle bounds)
        {
            if (PreRenderTextRow != null)
            {
                GridPreRenderTextRowEventArgs ev = new
                    GridPreRenderTextRowEventArgs(g, gridTextRow.GridPanel, gridTextRow, parts, bounds);

                PreRenderTextRow(this, ev);

                return (ev.Cancel);
            }

            return (false);
        }
Пример #3
0
        /// <summary>
        /// Handles invocation of TextRowHeaderClick events
        /// </summary>
        internal void DoTextRowHeaderClickEvent(GridTextRow textRow, MouseEventArgs e)
        {
            if (TextRowHeaderClick != null)
            {
                GridTextRowEventArgs ev = new
                    GridTextRowEventArgs(textRow.GridPanel, textRow, e);

                TextRowHeaderClick(this, ev);
            }
        }
Пример #4
0
        /// <summary>
        /// Handles invocation of GetTextRowStyle events
        /// </summary>
        internal void DoGetTextRowStyleEvent(
            GridTextRow gridTextRow, StyleType eStyle, ref TextRowVisualStyle style)
        {
            if (GetTextRowStyle != null)
            {
                GridGetTextRowStyleEventArgs ev = new
                    GridGetTextRowStyleEventArgs(gridTextRow.GridPanel, gridTextRow, eStyle, style);

                GetTextRowStyle(this, ev);

                style = ev.Style;
            }
        }
Пример #5
0
        /// <summary>
        /// Handles invocation of PostRenderTextRow events
        /// </summary>
        internal void DoPostRenderTextRowEvent(
            Graphics g, GridTextRow gridTextRow, RenderParts parts, Rectangle bounds)
        {
            if (PostRenderTextRow != null)
            {
                GridPostRenderTextRowEventArgs ev = new
                    GridPostRenderTextRowEventArgs(g, gridTextRow.GridPanel, gridTextRow, parts, bounds);

                PostRenderTextRow(this, ev);
            }
        }
Пример #6
0
        ///<summary>
        /// GridTextRowMarkupLinkClickEventArgs
        ///</summary>
        ///<param name="gridPanel"></param>
        ///<param name="gridTextRow"></param>
        ///<param name="name"></param>
        ///<param name="href"></param>
        public GridTextRowMarkupLinkClickEventArgs(GridPanel gridPanel,
            GridTextRow gridTextRow, string name, string href)
            : base(gridPanel)
        {
            _GridTextRow = gridTextRow;

            _HRef = href;
            _Name = name;
        }
Пример #7
0
 ///<summary>
 /// GridTextRowEventArgs
 ///</summary>
 ///<param name="gridPanel"></param>
 ///<param name="textRow"></param>
 ///<param name="e"></param>
 public GridTextRowEventArgs(
     GridPanel gridPanel, GridTextRow textRow, MouseEventArgs e)
     : base(gridPanel)
 {
     _GridTextRow = textRow;
     _MouseEventArgs = e;
 }
Пример #8
0
 ///<summary>
 /// GridPreRenderTextRowEventArgs
 ///</summary>
 ///<param name="graphics"></param>
 ///<param name="gridPanel"></param>
 ///<param name="gridTextRow"></param>
 ///<param name="parts"></param>
 ///<param name="bounds"></param>
 public GridPreRenderTextRowEventArgs(Graphics graphics, GridPanel gridPanel,
     GridTextRow gridTextRow, RenderParts parts, Rectangle bounds)
     : base(graphics, gridPanel, gridTextRow, parts, bounds)
 {
 }
Пример #9
0
 ///<summary>
 /// GridPostRenderTextRowEventArgs
 ///</summary>
 ///<param name="graphics"></param>
 ///<param name="gridPanel"></param>
 ///<param name="gridTextRow"></param>
 ///<param name="parts"></param>
 ///<param name="bounds"></param>
 public GridPostRenderTextRowEventArgs(Graphics graphics, GridPanel gridPanel,
     GridTextRow gridTextRow, RenderParts parts, Rectangle bounds)
     : base(gridPanel)
 {
     _Graphics = graphics;
     _RenderParts = parts;
     _Bounds = bounds;
     _GridTextRow = gridTextRow;
 }
Пример #10
0
 ///<summary>
 /// GridGetTextRowStyleEventArgs
 ///</summary>
 ///<param name="gridPanel"></param>
 ///<param name="gridTextRow"></param>
 ///<param name="styleType"></param>
 ///<param name="style"></param>
 public GridGetTextRowStyleEventArgs(
     GridPanel gridPanel, GridTextRow gridTextRow, StyleType styleType, TextRowVisualStyle style)
     : base(gridPanel)
 {
     _GridTextRow = gridTextRow;
     _StyleType = styleType;
     _Style = style;
 }