private void SaveButton_Click(object sender, RoutedEventArgs e) { if (viewObject.GameObject != null) { _gameObjectService.UpdateGameTable(viewObject.GameObject); _gameObjectService.CommitGameObject(viewObject.GameObject); _projectService.SaveProject(); } }