New Posts New Posts RSS Feed: dialogresult and screen
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

dialogresult and screen

 Post Reply Post Reply
Author
pponzano View Drop Down
Senior Member
Senior Member
Avatar

Joined: 28-Apr-2011
Location: Italy
Posts: 165
Post Options Post Options   Quote pponzano Quote  Post ReplyReply Direct Link To This Post Topic: dialogresult and screen
    Posted: 07-Mar-2012 at 7:37am
Hello,
how do I handle a screen showed by

  DialogOperationResult<DialogResult> res;

            yield return (res = dialogManager.ShowDialog(viewmodel, DialogButtons.YesNo));


I've the two buttons on the dialog...don't know how to attach code to them,
thanks
Back to Top
mgood View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 18-Nov-2010
Location: Emeryville, CA
Posts: 583
Post Options Post Options   Quote mgood Quote  Post ReplyReply Direct Link To This Post Posted: 07-Mar-2012 at 11:01am
DialogOperationResult<DialogResult> res;

yield return (res = dialogManager.ShowDialog(viewmodel, DialogButtons.YesNo));
if (res.DialogResult == DialogResult.Yes)
  // Code when Yes was clicked
else
  // Code when No was clicked
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down