OnClick() public method

Occurs when this command is clicked
public OnClick ( ) : void
return void
        /// <summary>
        /// Open New Document menu event handler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menuOpenDoc_Click(object sender, System.EventArgs e)
        {
            // switch to map view
            tabControl1.SelectedTab = (TabPage)tabControl1.Controls[0];

            //launch the OpenMapDoc command
            OpenNewMapDocument openMapDoc = new OpenNewMapDocument(m_controlsSynchronizer);

            openMapDoc.OnCreate(m_controlsSynchronizer.MapControl.Object);
            openMapDoc.OnClick();

            m_documentFileName = openMapDoc.DocumentFileName;
        }
    /// <summary>
    /// Open New Document menu event handler
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    private void menuOpenDoc_Click(object sender, System.EventArgs e)
    {
      // switch to map view
      tabControl1.SelectedTab = (TabPage)tabControl1.Controls[0];
      
      //launch the OpenMapDoc command
      OpenNewMapDocument openMapDoc = new OpenNewMapDocument(m_controlsSynchronizer);
      openMapDoc.OnCreate(m_controlsSynchronizer.MapControl.Object);
      openMapDoc.OnClick();

      m_documentFileName = openMapDoc.DocumentFileName;
    }