ShowDialog

3/30/2010 8:28 PM
You can subscribe to this wiki article using an RSS feed reader.

First you need to import a reference to the Messaging Service:

    [Import(SoapBox.Core.Services.Messaging.MessagingService,
            typeof(IMessagingService))]
    private Lazy<IMessagingService> messagingService { get; set; }

Then you can show a dialog box (it will log the message and result using the LoggingService as well):

    DialogResult result = messagingService.Value.ShowDialog(
            "Are you sure you want to self destruct?",
            "Arm Self Desctruct Sequence", MessageBoxButtons.YesNo);


Tags:
Home: SoapBox Core What's new: Recently changed articles