c# - Replace PromptDialog with messages upon selection -


i've trying replace promptdialog accepted option along message once user selects. unfortunately i've been unable find solution it. because after user selects option, dialog can clicked again i'm trying avoid.

q. possible ? if can please help.

code

promptdialog.confirm(context, this.resumeafternone, message);   private async task resumeafternone(idialogcontext context, iawaitable<bool> result)  {      bool issure = await result;      string response = issure ? "awesome" : "sorry";      imessageactivity messageactivity = context.makemessage();      messageactivity.text = response;       await context.postasync(messageactivity);      context.done<object>(null);  } 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -