Added changes to improve compatibility with running through Mono

This commit is contained in:
Souji Seta 2014-11-27 03:22:56 -06:00
parent 5581b0d035
commit 30d64a3d2d

View File

@ -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;