public Presenter(ModelMapper modelMapper, CustomValidatorWindow window) { _window = window; _name = NewScalar("VAL_").AddValidator(Extensions.ValidateRequired).AddValidator(modelMapper.ValidateIdentifier); _description = NewScalar <string>(); Show(_window._view); }
private void AddCustomValidatorCommand_Execute(object sender, EventArgs e) { Debug.Assert(CanAddCodeSnippet); CustomValidatorWindow.Show(ModelMapper, AddCustomValidator); }