Table of Contents

NcFileCommand Panel

The key model is NcFileCommand.

  • Other Model: string BaseDirectory.

Layout

  • NcFileCommand Panel
    • Head Line
      • NC File Setting
        • The model is <xref:Hi.ShellCommands.ClassicNcFileCommand.NcFile>.
        • NC File Label
        • NC File Text Field
          • About 20 charactor width
        • Load File Browser Button
          • Apply universal file filter for the NC files. Since NC File has too many extensions, such as but not limits to: nc, h, mpf, ptp.
          • Follow the Load Pattern.
    • NC File Editor The editor only available for text file. If the file lines within 20000 line, enable the NC File Editor; Otherwise, just preview the first 20000 line of the file and show the message to the Head Message Place. Auto-Save the file if the content changed.
      • Head Message Place
        • Show the error or exception of the File.
      • NC Code TextArea
Tip

Fix the height of NC Code TextArea to the panel bottom. Set NC Code TextArea height resizable.

WPF Application Source Code Path

  • Mission/NcFileCommandPanel

see this page for git repository.