public void AddAuthor()
        {
            additionalWindow window = new additionalWindow();
            bool?            res    = window.ShowDialog();

            if (res != null && res == true)
            {
                Author author = window.Author;
                _model.AddAuthor(author);
            }
            _view.MyListView.ItemsSource = _model.GetList();
        }
 public MainWindowPresenter(IViewMainWindow view)
 {
     _view  = view;
     _model = new DbLibrary();
     _view.MyListView.ItemsSource = _model.GetList();
 }