/// <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) { try { FormShowFlags formShowFlags = new FormShowFlags(this); formShowFlags.CalledFrom = m_ClientForm; formShowFlags.Show(); } catch (Exception exception) { MessageBox.Show(exception.Message, Resources.MBCaptionInformation, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } }