Ejemplo n.º 1
0
        /// <summary>
        /// Event handler for the 'Show Flags' context menu option <c>Click</c> event.
        /// </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>
        private void m_MenuItemShowFlags_Click(object sender, EventArgs e)
        {
            // Skip, if the Dispose() method has been called.
            if (IsDisposed)
            {
                return;
            }

            // Skip, if the ClientForm propery is null.
            if (ClientForm != null)
            {
                FormShowFlagsSelfTest formShowFlagsSelfTest = new FormShowFlagsSelfTest(this);
                formShowFlagsSelfTest.CalledFrom = m_ClientForm;
                formShowFlagsSelfTest.Show();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Event handler for the 'Show Flags' context menu option <c>Click</c> event. 
        /// </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>
        private void m_MenuItemShowFlags_DoubleClick(object sender, EventArgs e)
        {
            // Skip, if the Dispose() method has been called.
            if (IsDisposed)
            {
                return;
            }

            // Skip, if the ClientForm propery is null.
            if (ClientForm != null)
            {
                FormShowFlagsSelfTest formShowFlagsSelfTest = new FormShowFlagsSelfTest(this);
                formShowFlagsSelfTest.CalledFrom = m_ClientForm;
                formShowFlagsSelfTest.Show();
            }
        }