mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 08:47:14 +00:00
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:
parent
da29f9a296
commit
8cf165d477
1 changed files with 9 additions and 1 deletions
|
@ -2469,7 +2469,15 @@ namespace PKHeX
|
||||||
private void updateMetAsEgg(object sender, EventArgs e)
|
private void updateMetAsEgg(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
GB_EggConditions.Enabled = CHK_AsEgg.Checked;
|
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
|
// Remove egg met data
|
||||||
CHK_IsEgg.Checked = false;
|
CHK_IsEgg.Checked = false;
|
||||||
CAL_EggDate.Value = new DateTime(2000, 01, 01);
|
CAL_EggDate.Value = new DateTime(2000, 01, 01);
|
||||||
|
|
Loading…
Reference in a new issue