protected virtual void OnButtonNewGameClicked(object sender, System.EventArgs e) { var newGameDialog = new DialogNewGame(); if (newGameDialog.Run() == (int)ResponseType.Ok) { var gameInfo = newGameDialog.GetGameInfo(); if (gameInfo != null) { var iter = gameStore.AppendValues(false, gameInfo.GameName, gameInfo.GameDescription, gameInfo); treeViewGames.Selection.SelectIter(iter); } } newGameDialog.Destroy(); }