Exemplo n.º 1
0
        private void OpenAlerts()
        {
            var alerts = _requestService.GetAlerts(DateTime.Now, DateTime.Now, SelectedHouse.Id);
            var model  = new AlertForHouseDialogViewModel(alerts);
            var view   = new AlertByHouseListDialog();

            view.DataContext = model;
            view.Owner       = Application.Current.MainWindow;
            model.SetView(view);
            view.ShowDialog();
        }