private void Edit() { if (EditWindow == null) { EditWindow = new EditPersonelWindow(SelecItem); EditWindow.Show(); EditWindow.EditPersonelViewModel.PersonelEdit += EditPersonelViewModelPersonelEdit; EditWindow.Closing += EditPersonWindowClosing; } }
private void EditPersonWindowClosing(object sender, CancelEventArgs e) { EditWindow.Dispose(); EditWindow = null; }