/// <summary>
        /// Event handler for F12 function key. Shows the form whixh displays the file header information.
        /// </summary>
        /// <param name="sender">Reference to the object that raised the event.</param>
        /// <param name="e">Parameter passed from the object that raised the event.</param>
        protected override void F12_Click(object sender, EventArgs e)
        {
            // Skip, if the Dispose() method has been called.
            if (IsDisposed)
            {
                return;
            }

            // Skip if the key isn't enabled.
            if (F12.Enabled == false)
            {
                return;
            }

            Cursor = Cursors.WaitCursor;
            F12.Checked = true;

            FormShowHeaderInformation formShowHeaderInformation = new FormShowHeaderInformation(WatchFile.Header);
            formShowHeaderInformation.CalledFrom = this;
            formShowHeaderInformation.ShowDialog();
            F12.Checked = false;
            Cursor = Cursors.Default;
        }
        /// <summary>
        /// Event handler for F12 function key. Shows the form whixh displays the file header information.
        /// </summary>
        /// <param name="sender">Reference to the object that raised the event.</param>
        /// <param name="e">Parameter passed from the object that raised the event.</param>
        protected override void F12_Click(object sender, EventArgs e)
        {
            // Skip, if the Dispose() method has been called.
            if (IsDisposed)
            {
                return;
            }

            // Skip if the key isn't enabled.
            if (F12.Enabled == false)
            {
                return;
            }

            Cursor = Cursors.WaitCursor;
            F12.Checked = true;

            // Clear the status message.
            MainWindow.WriteStatusMessage(string.Empty);

            // If currently in play mode, turn it off.
            if (m_Play == true)
            {
                // Stop the play timer.
                m_TimerPlay.Stop();
                F11.Checked = false;
                m_Play = false;
            }

            FormShowHeaderInformation formShowHeaderInformation = new FormShowHeaderInformation(WatchFile.Header);
            formShowHeaderInformation.CalledFrom = this;
            formShowHeaderInformation.ShowDialog();

            F12.Checked = false;
            Cursor = Cursors.Default;
        }
示例#3
0
        /// <summary>
        /// Event handler for F12 function key. Shows the form which displays the file header information.
        /// </summary>
        /// <param name="sender">Reference to the object that raised the event.</param>
        /// <param name="e">Parameter passed from the object that raised the event.</param>
        protected override void F12_Click(object sender, EventArgs e)
        {
            // Skip, if the Dispose() method has been called.
            if (IsDisposed)
            {
                return;
            }

            // Skip if the key isn't enabled.
            if (F12.Enabled == false)
            {
                return;
            }

            Cursor = Cursors.WaitCursor;
            F12.Checked = true;

            // Clear the status message.
            if (MainWindow != null)
            {
                MainWindow.WriteStatusMessage(string.Empty);
            }

            FormShowHeaderInformation formShowHeaderInformation = new FormShowHeaderInformation(EventLogFile.Header);
            formShowHeaderInformation.CalledFrom = this;
            formShowHeaderInformation.ShowDialog();
            F12.Checked = false;
            Cursor = Cursors.Default;
        }