Example #1
0
        protected Task ShowDialogAsync(ViewModelBase viewModel)
        {
            var eventArgs = new DialogRequestedEventArgs(viewModel);

            DialogRequested.Invoke(this, eventArgs);
            return(eventArgs.CompletionTask);
        }
Example #2
0
        protected Task ShowMessageDialogAsync(string title, string message)
        {
            var messageDialogModel = new MessageDialogModel(title, message);
            var eventArgs          = new DialogRequestedEventArgs(messageDialogModel);

            DialogRequested.Invoke(this, eventArgs);
            return(eventArgs.CompletionTask);
        }