private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { //if (editMode != EditVideoWindowMode.Popup) // Owner.Show(); if (callback != null) { if (isFormSaved) callback(video); else callback(null); } }