Exemple #1
0
 public Back(RoutePresenter routePresenter)
 {
     _routePresenter = routePresenter;
 }
Exemple #2
0
        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;
            }
        }