NcFileCommand Panel
The key model is NcFileCommand.
- Other Model: string BaseDirectory.
Layout
- NcFileCommand Panel
- Head Line
- NC File Setting
- The model is 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 Setting
- 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
- Head Message Place
- Head Line
Tip
Fix the height of NC Code TextArea to the panel bottom. Set NC Code TextArea height resizable.
Source Code Path
See this page for git repository.
WPF Application Source Code Path
- Mission/NcFileCommandPanel
Web Page Application Source Code Path
- wwwroot/mission/panels/ncfile-command-panel.html (Component HTML)
- wwwroot/mission/panels/ncfile-command-panel.css (Component styles)
- wwwroot/mission/panels/ncfile-command-panel.js (JavaScript component)
- Controller/MissionController.cs (REST API - NcFile command endpoints)