private void Add() { _addViewModel.Reset(); _addRequest.Raise(new ResponseNotification { ChildWindow = new AddView(), Title = "Add new recruiter", Content = _addViewModel }, n => { if (n.Result.HasValue) { Load(); } }); }
private void Add() { _addViewModel.Reset(); _addRequest.Raise(new ResponseNotification { ChildWindow = new AddView(), Content = _addViewModel }, r => { if (!r.Result.HasValue) { return; } if (r.Result.Value) { Thread.Sleep(500); Load(); } }); }