public Back(RoutePresenter routePresenter) { _routePresenter = routePresenter; }
private void RouteViewLoad(object sender, EventArgs e) { if (_routePresenter == null) { routePointListBox.ItemSelected += ItemSelected; routePointListBox.ItemDataNeeded += ItemDataNeeded; _routePresenter = _presentersFactory.CreateRoutePresenter(this, _routeViewModel); _viewModel = _routePresenter.Initialize(); ViewContainer.RegisterLeftAction(new StubAction()); ViewContainer.RegisterRightAction(new Back(_routePresenter)); datePicker.Value = _viewModel.Date; routePointListBox.SetListSize(_routePresenter.InitializeListSize()); datePicker.ValueChanged += DateChanged; } }