Autopopulate Egg Location if AsEgg checked

Thanks @ricksee !
Takes it a step further by setting the met location too (to the first
egg location, now presorted, usually is Day-care couple).
Closes #286
This commit is contained in:
Kaphotics 2016-09-20 19:21:58 -07:00
parent da29f9a296
commit 8cf165d477

View file

@ -2469,7 +2469,15 @@ namespace PKHeX
private void updateMetAsEgg(object sender, EventArgs e)
{
GB_EggConditions.Enabled = CHK_AsEgg.Checked;
if (CHK_AsEgg.Checked) return;
if (CHK_AsEgg.Checked)
{
if (!fieldsLoaded)
return;
CAL_EggDate.Value = DateTime.Now;
CB_EggLocation.SelectedIndex = 1;
return;
}
// Remove egg met data
CHK_IsEgg.Checked = false;
CAL_EggDate.Value = new DateTime(2000, 01, 01);