Create the interface elements
Create the required text boxes and buttons.
- Create variables:
- In theProject viewpane, create three variables by right-clicking theModelfolder and selecting .
- Rename the variables by hovering-over each variable, selecting, and entering:
- Source
- Target
- Password
- For each variable, in thePropertiespane, selectInt32and selectStringand clear the value.
- Create the source file path text box:
- In theProject viewpane, expand theUIfolder.
- Right-clickMainWindow (type)and select .
- Hover-over the text box, select, and enterSourceBox
- In thePropertiespane, set thePlaceholder textproperty value toSource file path
- Create a dynamic link between theTextproperty and .For more information about dynamic links, see Create dynamic links.
- Create the target file path text box:
- Right-clickMainWindow (type)and select .
- Hover-over the text box, select, and enterTargetBox.
- In theProject viewpane, selectTargetBox.
- In thePropertiespane, set thePlaceholder textproperty value toTarget file path
- Create a dynamic link between theTextproperty and .For more information about dynamic links, see Create dynamic links.
- Create the password text box:
- Right-clickMainWindow (type)and select .
- Hover-over the text box, select, and enterPasswordBox.
- In theProject viewpane, selectPasswordBox.
- In thePropertiespane, set thePlaceholder textproperty value toPassword
- In thePropertiespane, set theControl typeproperty value toPasswordThis setting obfuscates the entered password.
- Create a dynamic link between theTextproperty and .For more information about dynamic links, see Create dynamic links.
- Create the Zip button:
- In theProject viewpane, right-clickMainWindow (type)and select .
- Hover-over the button, select, and enterZipButton
- In thePropertiespane, set theTextproperty toZip
- In theEventspane, next toMouseClickEvent, selectand select .
- Create the unzip button:
- In theProject viewpane, right-clickMainWindow (type)and select .
- Hover-over the button, select, and enterUnzipButton
- In thePropertiespane, set theTextproperty toUnzip.
- In theEventspane, next toMouseClickEvent, selectand select .
- Link the NetLogic with the variables:
- In theProject viewpane, expand theNetLogicfolder.
- SelectZipUnzipLogicand in thePropertiespane, create dynamic links between:
- Passwordand
- Sourceand
- Targetand
For more information about dynamic links, see Create dynamic links.
- Arrange the interface elements.

Fornire un feedback