Create a button that shuts down the host system

Add a button that shuts down the host operating system on which the
FactoryTalk Optix Application
runs.
IMPORTANTE:
Pressing the
Shut down system
button
immediately shuts down the host operating system
on which the
FactoryTalk Optix Application
runs.
For example, if you run the
FactoryTalk Optix Application
on an emulator target, pressing the button will immediately shut down your Windows system.
  1. In the
    Project view
    pane, right-click
    MainWindow (type)
    and select
    New
    Base controls
    Button
    .
  2. Hover-over the button, select
    Edit
    , and enter
    ShutDownSystemButton
    .
  3. In the
    Properties
    pane, set the
    Text
    property value to
    SHUT DOWN HOST SYSTEM
    .
  4. In the
    Events
    pane, next to
    MouseClick event
    , select
    Add
    and select
    ProjectName
    NetLogic
    ShutDownSystemNetLogic
    SystemShutDown
    .
Fornire un feedback
Hai domande o feedback su questa documentazione? invia il tuo feedback qui.