Let $I =\int e^{x}(\sin \,x+2 \,\cos \,x) \sin \,x \,d x $
$ =\int \underset{II}{e^{x}} \, \underset{I}{\sin^{2}} \,x \, d x+\int 2 e^{x} \,\sin \, x \,\cos \,x \, d x$
Applying integration by parts in first integral,
we get
$I=e^{x} \,\sin ^{2} \,x-\int 2 \,\sin \,x \,\cos \, x e^{x} \,d x +\int 2 e^{x} \,\sin \,x \,\cos \, x \,d x+C$
$=e^{x} \sin ^{2} \,x+C $