🔒 You're viewing limited content
In this lesson, we begin implementing the OnCmd method, which acts as the primary engine for your add-in’s logic.
You will learn how to use a switch statement to intercept the specific event hooks we registered earlier, allowing your code to react differently whether the PDM admin is configuring settings or a user is running the task.
Key Highlights:
-
- The Role of OnCmd : Understand how OnCmd serves as the entry point for all PDM notifications.
-
- Switch Statement Implementation : Learn how to structure a C# switch statement based on the meCmdType to cleanly separate your setup, launch, and execution logic.