Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class AlertDialogViewModel : DialogViewModelBase<DialogResults>
- {
- public ICommand OKCommand { get; private set; }
- public AlertDialogViewModel(string title, string message) : base(title, message)
- {
- OKCommand = new RelayCommand<IDialogWindow>(OK);
- }
- private void OK(IDialogWindow window)
- {
- CloseDialogWithResult(window, DialogResults.Undefined);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement