Print Page | Close Window

Displaying user Prompt

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3680
Printed Date: 13-May-2026 at 1:03am


Topic: Displaying user Prompt
Posted By: jordif
Subject: Displaying user Prompt
Date 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.



Replies:
Posted By: Walid
Date 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);



Print Page | Close Window