Bidirectional photomagnetic conversions in a spin-crossover complex with a diarylethene moiety.