private bool showGameFilesWindow(ref string?selectedPath) { EventLogger.logEvent("showGameFilesWindow"); var gameFilesWindow = WindowFactory.createGameFilesWindow(selectedPath, allowNoContent: true); gameFilesWindow.ShowDialog(); var gameFilesWindowResult = gameFilesWindow.result; switch (gameFilesWindowResult) { case GameFilesWindow.GameFilesWindowResult.exit: selectedPath = null; return(false); case GameFilesWindow.GameFilesWindowResult.useSelectedPath: selectedPath = gameFilesWindow.selectedPath !; return(true); case GameFilesWindow.GameFilesWindowResult.noContent: selectedPath = null; return(true); } throw new NotImplementedException(); }