Ejemplo n.º 1
0
        /// <summary>
        /// Handles invocation of PostRenderFilterPopupGripBar events
        /// </summary>
        internal void DoPostRenderFilterPopupGripBarEvent(
            Graphics g, FilterPopup filterPopup, GridColumn gridColumn, Rectangle bounds)
        {
            if (PostRenderFilterPopupGripBar != null)
            {
                GridPostRenderFilterPopupGripBarEventArgs ev = new
                    GridPostRenderFilterPopupGripBarEventArgs(g, filterPopup, gridColumn, bounds);

                PostRenderFilterPopupGripBar(this, ev);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles invocation of PreRenderFilterPopupGripBar events
        /// </summary>
        internal bool DoPreRenderFilterPopupGripBarEvent(
            Graphics g, FilterPopup filterPopup, GridColumn gridColumn, Rectangle bounds)
        {
            if (PreRenderFilterPopupGripBar != null)
            {
                GridPreRenderFilterPopupGripBarEventArgs ev = new
                    GridPreRenderFilterPopupGripBarEventArgs(g, filterPopup, gridColumn, bounds);

                PreRenderFilterPopupGripBar(this, ev);

                return (ev.Cancel);
            }

            return (false);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Handles invocation of FilterPopupLoaded events
        /// </summary>
        internal void DoFilterPopupLoadedEvent(GridColumn column, FilterPopup filterPopup)
        {
            if (FilterPopupLoaded != null)
            {
                GridFilterPopupLoadedEventArgs ev = new
                    GridFilterPopupLoadedEventArgs(column.GridPanel, column, filterPopup);

                FilterPopupLoaded(this, ev);
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Handles invocation of FilterPopupOpening events
        /// </summary>
        internal bool DoFilterPopupOpeningEvent(GridColumn column, FilterPopup filterPopup)
        {
            if (FilterPopupOpening != null)
            {
                GridFilterPopupOpeningEventArgs ev = new
                    GridFilterPopupOpeningEventArgs(column.GridPanel, column, filterPopup);

                FilterPopupOpening(this, ev);

                return (ev.Cancel);
            }

            return (false);
        }
Ejemplo n.º 5
0
 ///<summary>
 /// GridPreRenderFilterPopupGripBarEventArgs
 ///</summary>
 ///<param name="graphics"></param>
 ///<param name="filterPopup"></param>
 ///<param name="gridColumn"></param>
 ///<param name="bounds"></param>
 public GridPreRenderFilterPopupGripBarEventArgs(Graphics graphics,
     FilterPopup filterPopup, GridColumn gridColumn, Rectangle bounds)
     : base(graphics, filterPopup, gridColumn, bounds)
 {
 }
Ejemplo n.º 6
0
 ///<summary>
 /// GridPostRenderFilterPopupGripBarEventArgs
 ///</summary>
 ///<param name="graphics"></param>
 ///<param name="filterPopup"></param>
 ///<param name="gridColumn"></param>
 ///<param name="bounds"></param>
 public GridPostRenderFilterPopupGripBarEventArgs(Graphics graphics,
     FilterPopup filterPopup, GridColumn gridColumn, Rectangle bounds)
     : base(gridColumn.GridPanel, gridColumn)
 {
     _Graphics = graphics;
     _FilterPopup = filterPopup;
     _Bounds = bounds;
 }
Ejemplo n.º 7
0
 ///<summary>
 /// GridFilterPopupOpeningEventArgs
 ///</summary>
 ///<param name="gridPanel"></param>
 ///<param name="gridColumn"></param>
 ///<param name="filterPopup"></param>
 public GridFilterPopupOpeningEventArgs(
     GridPanel gridPanel, GridColumn gridColumn, FilterPopup filterPopup)
     : base(gridPanel, gridColumn)
 {
     _FilterPopup = filterPopup;
 }
Ejemplo n.º 8
0
        internal void ActivateFilterPopup(GridPanel panel, GridColumn column)
        {
            if (_FilterMenu != null)
                _FilterMenu.Dispose();

            _FilterMenu = new FilterPopup(panel);

            _LockedColumn = true;
            _HitArea = HeaderArea.NoWhere;

            _FilterMenu.ActivatePopup(column, ResetColumnState);
        }
Ejemplo n.º 9
0
        private void ProcessFilterHit(GridGroupBox box)
        {
            if (_FilterMenu != null)
                _FilterMenu.Dispose();

            _LockedColumn = true;

            _FilterMenu = new FilterPopup(GridPanel);

            _FilterMenu.ActivatePopup(box.Column, box.FilterImageRelBounds, ResetState);
        }