Table of Contents

List Command Panel

The key model is ListCommand.

Layout

  • Columns Layout (Two column with one splition bar)
    • Command Entry List Panel Provide entrys for selection The model is CommandEntryList.
      • Head Line
      • Command Entrys Selection Panel
        • (Each) Command Entry Box: The boxes are multi-selectable for re-order, remove and etc.. The boxes are draggable for re-order.
          Tip

          Apply style changed if the entry is selected.

          • If there is only one PreSettingCommand in the list and at the begining, Keep it at begining when items adding, shows a “pin at begining” label with a pin icon.
          • If there is only one PostExecutionCommand in the list and at the end, Keep it at end when items adding, shows a “pin at end” label a pin icon.
      • Support file drag from the external application (such as file explorer), files drag into the Command Entrys List Panel is equivalent to create NcFileCommands (with the EnablingWrapper) and set the file into the NC File Command.
    • Vertical Splition Bar
      • The bar can be drag to tune the width.
    • Selected Command Content Panel
      • The model is Command.
      • The panel is based on command type
      Tip

      The width of the entry block should expand to fulfill the content block.

Tip

Use Disabled Style for command panels if the Enable checkbox is not checked.

Note

Each command entry can be individually enabled or disabled without removing it from the list.

Features

Update the Title Label if the Command is updated by the Command Content Panel.

Source Code Path

See this page for git repository.

WPF Application Source Code Path

  • Mission/ListCommandPanel

Web Page Application Source Code Path

  • wwwroot/mission/panels/list-command-panel.html (Component HTML)
  • wwwroot/mission/panels/list-command-panel.css (Component styles)
  • wwwroot/mission/panels/list-command-panel.js (JavaScript component with full ListCommand logic)
  • Controller/MissionController.cs (REST API - ListCommand CRUD operations)