コード例 #1
0
        /// <summary>
        /// Handles the Click event of the View_AuditEventsMI control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void View_AuditEventsMI_Click(object sender, EventArgs e)
        {
            try
            {
                if (m_auditEventForm == null)
                {
                    m_auditEventForm              = new AuditEventForm(m_session, m_subscription);
                    m_auditEventForm.FormClosing += new FormClosingEventHandler(AuditEventForm_FormClosing);
                }

                m_auditEventForm.Show();
                m_auditEventForm.BringToFront();
            }
            catch (Exception exception)
            {
                ClientUtils.HandleException(this.Text, exception);
            }
        }