Create the required text boxes and buttons.
-
Create variables:
-
In Project view , create three variables by right-clicking Model and selecting .
-
Rename the variables by hovering-over each variable, selecting
, and entering:
-
For each variable, in Properties, select Int32 and select String and clear the value.
-
Create the source file path text box:
-
In Project view , expand UI.
-
Right-click MainWindow (type) and select .
-
Hover-over the text box, select
, and enter SourceBox
-
In Properties, set Placeholder text to Source file path
-
Create a dynamic link between Text and .
-
Create the target file path text box:
-
Right-click MainWindow (type) and select .
-
Hover-over the text box, select
, and enter TargetBox.
-
In Project view, select TargetBox.
-
In Properties, set the Placeholder text property value to Target file path
-
Create a dynamic link between the Text property and .
-
Create the password text box:
-
Right-click MainWindow (type) and select .
-
Hover-over the text box, select
, and enter PasswordBox.
-
In Project view, select PasswordBox.
-
In Properties, set the Placeholder text property value to Password
-
In Properties, set the Control type property value to Password
This setting obfuscates the entered password.
-
Create a dynamic link between the Text property and .
-
Create the Zip button:
-
In Project view, right-click MainWindow (type) and select .
-
Hover-over the button, select
, and enter ZipButton
-
In Properties, set the Text property to Zip
-
In the Events pane, next to MouseClickEvent, select
and select .
-
Create the unzip button:
-
In Project view, right-click MainWindow (type) and select .
-
Hover-over the button, select
, and enter UnzipButton
-
In Properties, set the Text property to Unzip.
-
In the Events pane, next to MouseClickEvent, select
and select .
-
Link the NetLogic with the variables:
-
In Project view, expand the NetLogic folder.
-
Select ZipUnzipLogic and in Properties, create dynamic links between:
-
Password and
-
Source and
-
Target and
For more information about dynamic links, see Create dynamic links.
-
Arrange the interface elements.