c# - Cancel IF method -


i have 1 problem. in app have radiobuttons, , checkbuttons, survey.

when skips 1 question, , leaves blank, have message popup:

 if(pao.odgovor == "")  {       var messagedialog = new windows.ui.popups.messagedialog("morate popuniti sva polja.");       await messagedialog.showasync();  } 

i want somehow after "await" application stop, , user must fill fields. tried return, return false, break nothing helps.

also, it's void method.

thx :)

in case create list questions must answered. suvery finished if list questions empty. if 1 question not answerd correctly, not removed list. if still iterate question question, user has answer before next question comes.

if work first-in-first-out list, can sure questions in correct order.

hope help.


Comments