New Posts New Posts RSS Feed: Displaying user Prompt
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Displaying user Prompt

 Post Reply Post Reply
Author
jordif View Drop Down
Newbie
Newbie
Avatar

Joined: 01-Oct-2012
Location: Spain
Posts: 1
Post Options Post Options   Quote jordif Quote  Post ReplyReply Direct Link To This Post Topic: Displaying user Prompt
    Posted: 01-Oct-2012 at 12:34am
I'm reading Ideablade docs about displaying user prompts and I've find that here:

 await _dialogManager.ShowMessageAsync(
"Are you sure?", new[] {"Save", "Cancel"});
        await _dialogManager.ShowMessageAsync(string.Format("The user clicked: {0}", asyncOp.DialogResult),
                                             DialogButtons.Ok);

asyncOp  is assumed to be declared but it isn't. How do I have to declare it ?

Thanks in advance.
Back to Top
Walid View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14-Nov-2010
Posts: 161
Post Options Post Options   Quote Walid Quote  Post ReplyReply Direct Link To This Post Posted: 01-Oct-2012 at 5:10am
I think the documentation is wrong and it should be :

        var dialogresult = await _dialogManager.ShowMessageAsync("Are you sure?", new[] {"Save", "Cancel"});

        await _dialogManager.ShowMessageAsync(string.Format("The user clicked: {0}", dialogresult),
                                             DialogButtons.Ok);
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down