public Cancel(SynchronizationPresenter synchronizationPresenter)
 {
     _synchronizationPresenter = synchronizationPresenter;
 }
 public Synchronize(SynchronizationPresenter synchronizationPresenter)
 {
     _synchronizationPresenter = synchronizationPresenter;
 }
        private void SynchronizationViewLoad(object sender, EventArgs e)
        {
            if (_synchronizationPresenter == null) {
                _synchronizationPresenter = _presentersFactory.CreateSynchronizationPresenter(this, _autostart);
                ViewModel = _synchronizationPresenter.InitializeView();
                ViewModel = ViewModel;

                _synchronizeFullyCheckBox.Checked = ViewModel.SynchronizeFully;
                _lastSyncDateLabel.Text = ViewModel.LastSynchronizationDate != DateTime.MinValue
                                          ? ViewModel.LastSynchronizationDate.ToString(_localizationManager.Localization.GetLocalizedValue("datetimeformat"))
                                          : _localizationManager.Localization.GetLocalizedValue("never");

                if (_autostart) {
                    _synchronizeFullyCheckBox.Checked = true;
                    _synchronizationPresenter.Synchronize();
                }
                else {
                    ViewContainer.RegisterLeftAction(new Synchronize(_synchronizationPresenter));
                    ViewContainer.RegisterRightAction(new Cancel(_synchronizationPresenter));
                }
            }
        }