mardi 5 juillet 2016

Designing an IF-ELSE user interface

I want to create an user interface where the user can set the If conditions based on it's input.

The problem consists on generating a different if/else condition based on the parameters the user have chose to take in.

Here is one scenario: screenshot

and here is the corresponding c# code i want to be generated:

if (param1<100 || param2==150)
{
   // set an action
}

I want the if/else code to change based on which parameters the user have chose.

The interface contains four different comboBoxes ( param1/param2, AND/OR, Equal to/less than/ more than, start/stop/pause).

Any help on how to do this, would be very appreciated.

Thanks.

Aucun commentaire:

Enregistrer un commentaire