Providing Admin Options

Top  Previous  Next

Apart from options that the user is asked to specify before each execution (user options), operations can have also options that are preset in the Corporate Options window of MZ-Tools. These options are called Admin Options and are preset by a team leader, being read-only for the remaining members of a team. You can see the admin options in this image:

ExternalOperationsAdminOptions

To provide admin options with your external operation you need to follow these steps:

  • To create a class that inherits from the AdminOptionsBase class and override its abstract methods. An instance of this class is passed to several methods that you override of the OperationBase class, so you can retrieve the admin options that apply to the operation.
  • To create a usercontrol that will be the user interface of the admin options and will be hosted in the Corporate Options window. The method OnCreatePropertyPage of the previous class must create and return an instance of this usercontrol.
  • The mentioned usercontrol must implement the IAdminOptionsPropertyPage interface.

Some of the external operations supplied as examples provide admin options.