From 30d64a3d2da1f0e20979fbb60eadc8e38ad465e9 Mon Sep 17 00:00:00 2001 From: Souji Seta Date: Thu, 27 Nov 2014 03:22:56 -0600 Subject: [PATCH] Added changes to improve compatibility with running through Mono --- PKX/f1-Main.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKX/f1-Main.cs b/PKX/f1-Main.cs index 18afbf6e8..9ef30a685 100644 --- a/PKX/f1-Main.cs +++ b/PKX/f1-Main.cs @@ -2785,7 +2785,7 @@ private void updateOriginGame(object sender, EventArgs e) int gameorigin = 0; // Error handling for unset field - try { gameorigin = Util.ToInt32(CB_GameOrigin.SelectedValue.ToString()); } + try { gameorigin = Util.ToInt32(CB_GameOrigin.SelectedItem.ToString()); } catch { gameorigin = 0; } if ((gameorigin <= 12) && (gameorigin >= 7)) @@ -3974,7 +3974,7 @@ public bool verifiedpkx() }; for (int i = 0; i < cba.Length; i++) { - if (cba[i].BackColor != SystemColors.Window && cba[i].BackColor != Color.Empty) + if (cba[i].BackColor != System.Drawing.SystemColors.Control && cba[i].BackColor != Color.Empty) { if (i < 6) // Main Tab tabMain.SelectedIndex = 0;