Esempio n. 1
0
        void SeFormClosed(object sender, FormClosedEventArgs e)
        {
            _GridPanel.SuperGrid.DoFilterHelpClosingEvent(_GridPanel, _GridColumn, Se);

            Se.FormClosed -= SeFormClosed;
            Se = null;
        }
Esempio n. 2
0
        private void CustomFilterHelpButtonClicked(object sender, CancelEventArgs e)
        {
            if (Se == null)
            {
                Se = new SampleExpr(_GridPanel.SuperGrid);
                Se.TitleText = _filterHelpTitle;

                Se.FormClosed += SeFormClosed;
            }

            if (_GridPanel.SuperGrid.DoFilterHelpOpeningEvent(_GridPanel, _GridColumn, Se) == true)
            {
                Se.Close();
            }
            else
            {
                Se.Show();

                if (Se.WindowState == FormWindowState.Minimized)
                    Se.WindowState = FormWindowState.Normal;

                Se.BringToFront();
            }

            e.Cancel = true;
        }
Esempio n. 3
0
        /// <summary>
        /// Handles invocation of FilterHelpClosing events
        /// </summary>
        internal void DoFilterHelpClosingEvent(GridPanel panel, GridColumn column, SampleExpr sampleExpr)
        {
            if (FilterHelpClosing != null)
            {
                GridFilterHelpClosingEventArgs ev = new
                    GridFilterHelpClosingEventArgs(panel, column, sampleExpr);

                FilterHelpClosing(this, ev);
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Handles invocation of FilterHelpOpening events
        /// </summary>
        internal bool DoFilterHelpOpeningEvent(GridPanel panel, GridColumn column, SampleExpr sampleExpr)
        {
            if (FilterHelpOpening != null)
            {
                GridFilterHelpOpeningEventArgs ev = new
                    GridFilterHelpOpeningEventArgs(panel, column, sampleExpr);

                FilterHelpOpening(this, ev);

                return (ev.Cancel);
            }

            return (false);
        }
Esempio n. 5
0
 ///<summary>
 /// GridFilterHelpOpeningEventArgs
 ///</summary>
 ///<param name="gridPanel"></param>
 ///<param name="gridColumn"></param>
 ///<param name="sampleExpr"></param>
 public GridFilterHelpOpeningEventArgs(
     GridPanel gridPanel, GridColumn gridColumn, SampleExpr sampleExpr)
     : base(gridPanel, gridColumn)
 {
     _SampleExpr = sampleExpr;
 }