Exemplo n.º 1
0
        ///////////////////////////////////////////////////////////////////////////////
        // Inherited methods                                                         //
        ///////////////////////////////////////////////////////////////////////////////
        #region OVERRIDES
        #endregion //OVERRIDES

        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler                                                              //
        ///////////////////////////////////////////////////////////////////////////////
        #region EVENTS

        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler for UI, Menu, Buttons, Toolbars etc.                         //
        ///////////////////////////////////////////////////////////////////////////////
        #region WINDOWSEVENTHANDLER

        /// <summary>
        /// The <see cref="Control.MouseDown"/> event handler for
        /// the <see cref="TrialTimeLine"/>.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">A <see cref="MouseEventArgs"/> with the event data.</param>
        private void TrialTimeLine_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                TimeLineFilterDialog dialog = new TimeLineFilterDialog();
                dialog.FilterString = this.EventFilterList;
                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    this.EventFilterList = dialog.FilterString;
                    this.Invalidate();
                }
            }
        }
Exemplo n.º 2
0
    ///////////////////////////////////////////////////////////////////////////////
    // Inherited methods                                                         //
    ///////////////////////////////////////////////////////////////////////////////
    #region OVERRIDES
    #endregion //OVERRIDES

    ///////////////////////////////////////////////////////////////////////////////
    // Eventhandler                                                              //
    ///////////////////////////////////////////////////////////////////////////////
    #region EVENTS

    ///////////////////////////////////////////////////////////////////////////////
    // Eventhandler for UI, Menu, Buttons, Toolbars etc.                         //
    ///////////////////////////////////////////////////////////////////////////////
    #region WINDOWSEVENTHANDLER

    /// <summary>
    /// The <see cref="Control.MouseDown"/> event handler for
    /// the <see cref="TrialTimeLine"/>.
    /// </summary>
    /// <param name="sender">Source of the event.</param>
    /// <param name="e">A <see cref="MouseEventArgs"/> with the event data.</param>
    private void TrialTimeLine_MouseDown(object sender, MouseEventArgs e)
    {
      if (e.Button == MouseButtons.Right)
      {
        TimeLineFilterDialog dialog = new TimeLineFilterDialog();
        dialog.FilterString = this.EventFilterList;
        if (dialog.ShowDialog() == DialogResult.OK)
        {
          this.EventFilterList = dialog.FilterString;
          this.Invalidate();
        }
      }
    }