Dissipative soliton resonance (DSR) was previously studied in separated mode-locked fiber lasers within different dispersion regimes including anomalous, near-zero and normal dispersion. Here we propose a method to study DSR in a single mode-locked laser in these different dispersion regimes. This is achieved by virtue of a waveshaper which can control the laser dispersion readily using software, avoiding the usual tedious cutback method. We find that dispersion has negligible effect on DSR since the pulse duration keeps constant while dispersion is varied. Moreover, we examine the dynamics of DSR on the parameters of the SA including modulation depth and saturation power, and find that the pulse duration can be changed in a large range when the saturation power is decreased. Our numerical simulations could be important to guide relative experimental studies.