89 views
in GUI Development by

Hi Team,

I have defined a property and it's associated onset property with a datatype of int32 within the device class. Default value of this property is given as 1. Implementation is shown below.

Consider that the GUI is flashed to the device and If I enter a value other than 1 to this property then until line 22 of onset method including native will be executed. Isn't it?

What happens if I enter 1 to this property? then also native will be called? Please clarify these scenarios.

Regards,

Sazna.

1 Answer

0 votes
by
Hello Sazna,

the if-condition in line 2 causes the method to exit when the assigned value is the same as already stored in the property. Consequently, the execution ends in line 3.

I hope it helps you further.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...