protected override void Context()
        {
            base.Context();

            _curveTemplates = new List <CurveTemplate> {
                _curveTemplate
            };
            _curveTemplateDTO = new CurveTemplateDTO(_curveTemplate);
            sut.Edit(_curveTemplates);
        }
Beispiel #2
0
 public void DeleteCurve(CurveTemplateDTO curveTemplate)
 {
     _curveTemplates.Remove(curveTemplate.CurveTemplate);
     rebind();
 }
 private RepositoryItem getButtonRepository(CurveTemplateDTO dto)
 {
     _buttonRepository.Enabled = _presenter.CanDeleteCurves;
     _buttonRepository.Buttons.Cast <EditorButton>().Each(b => b.Enabled = _buttonRepository.Enabled);
     return(_buttonRepository);
 }