OnCreate() public method

Occurs when this command is created
public OnCreate ( object hook ) : void
hook object Instance of the application
return void
        private void menuNewDoc_Click(object sender, EventArgs e)
        {
            //execute New Document command
            ICommand command = new CreateNewDocument();

            command.OnCreate(m_mapControl.Object);
            command.OnClick();
        }
		private void menuNewDoc_Click(object sender, EventArgs e)
		{
			//execute New Document command
			ICommand command = new CreateNewDocument();
			command.OnCreate(m_mapControl.Object);
			command.OnClick();
		}