private void loadchks()
{
// Load Bools for the data
int pk;
try
{ pk = Util.getIndex(CB_Species); }
catch { pk = LB_Species.SelectedIndex + 1; }
CheckBox[] CP =
{
CHK_P1,CHK_P2,CHK_P3,CHK_P4,CHK_P5,CHK_P6,CHK_P7,CHK_P8,CHK_P9,
};
CheckBox[] CL =
{
CHK_L1,CHK_L2,CHK_L3,CHK_L4,CHK_L5,CHK_L6,CHK_L7,
};
// Load Partitions
for (int i = 0; i < 9; i++)
CP[i].Checked = specbools[i, pk-1];
for (int i = 0; i < 7; i++)
CL[i].Checked = langbools[i, pk-1];
{
CHK_P1.Enabled = true;
int index = LB_Species.SelectedIndex + 1;
PKX.PersonalParser.Personal MonData = PKX.PersonalGetter.GetPersonal(index);
int gt = MonData.GenderRatio;
CHK_P2.Enabled = CHK_P4.Enabled = CHK_P6.Enabled = CHK_P8.Enabled = (gt != 254); // Not Female-Only
CHK_P3.Enabled = CHK_P5.Enabled = CHK_P7.Enabled = CHK_P9.Enabled = (gt != 0) && (gt != 255); // Not Male-Only and Not Genderless
for (int i = 0; i < 7; i++)
CL[i].Enabled = true;
}
// Load Encountered Count
editing = true;
MT_Count.Text = BitConverter.ToUInt16(sav, dexoffset + 0x686 + (pk - 1) * 2).ToString();
editing = false;
}
private void removedropCB(object sender, KeyEventArgs e)