public void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (Exit == Enum.ExitStatus.Ok) { _jm.AddObject(Job); } }