cara terdeteksi windowcloseevent di wpf jendela lain
Window.Closed += Evenfunction;
DedSec
Window.Closed += Evenfunction;