コード例 #1
0
 public void Edit(DisplayUnitsManager displayUnitsManager, string displayUnitsType)
 {
     _displayUnitsManagerToEdit = displayUnitsManager;
     _clonedUnitManager         = _cloner.Clone(_displayUnitsManagerToEdit);
     _displayUnitsPresenter.Edit(_clonedUnitManager);
     _view.Caption = Captions.ManageDisplayUnits(displayUnitsType);
     _view.Display();
     if (_view.Canceled)
     {
         return;
     }
     // User confirms changes=> Update
     _displayUnitsManagerToEdit.UpdatePropertiesFrom(_clonedUnitManager, _cloner);
 }