public void Notify(SuspeciousCarAlermInfo alerm) { _currentAlerm = alerm; SoundVoiceAlerm(_currentAlerm); Func<System.Windows.Forms.Form> doit = () => { var form = new FormSuspeciousCar(); form.DataContext = _currentAlerm; form.AttachPresenter(this); return form; }; _messageBoxService.ShowForm(doit); }
public void Notify(SuspeciousCarAlermInfo alerm) { _currentAlerm = alerm; SoundVoiceAlerm(_currentAlerm); Func <System.Windows.Forms.Form> doit = () => { var form = new FormSuspeciousCar(); form.DataContext = _currentAlerm; form.AttachPresenter(this); return(form); }; _messageBoxService.ShowForm(doit); }