public Presenter(ModelMapper modelMapper, CustomValidatorWindow window)
            {
                _window = window;

                _name        = NewScalar("VAL_").AddValidator(Extensions.ValidateRequired).AddValidator(modelMapper.ValidateIdentifier);
                _description = NewScalar <string>();

                Show(_window._view);
            }
예제 #2
0
 private void AddCustomValidatorCommand_Execute(object sender, EventArgs e)
 {
     Debug.Assert(CanAddCodeSnippet);
     CustomValidatorWindow.Show(ModelMapper, AddCustomValidator);
 }