public void EditPreferencesClick() { var prefDialog = _viewFactory.GetPreferencesDialog(); prefDialog.ShowDialog(_view); _viewFactory.Release(prefDialog); _view.DataGridView.Invalidate(); }