  We develop a unified approach for construction of symplectic forms for 1D
integrable equations with the periodic and rapidly decaying initial data. As an
example we consider the cubic nonlinear Schr\"{o}dinger equation.
