public Presenter(ModelMapper modelMapper, PrimaryKeyWindow window) { _window = window; _modelMapper = modelMapper; _pkTypeName = NewScalar("PK").AddValidator(Extensions.ValidateRequired).AddValidator(modelMapper.ValidateIdentifier); _shouldCreateKey = NewScalar(true); _keyTypeName = NewScalar("Key"); _shouldCreateRef = NewScalar(false); _refTypeName = NewScalar("Ref"); Show(_window._dataView, modelMapper.CreatePrimaryKeyEntries()); }
private void AddPrimaryKeyCommand_Execute(object sender, EventArgs e) { Debug.Assert(CanAddPrimaryKey); PrimaryKeyWindow.Show(ModelMapper, AddPrimaryKey); }