mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 16:48:01 +00:00
parent
0b458395f1
commit
553e9ac1b3
1 changed files with 4 additions and 1 deletions
|
@ -1002,7 +1002,8 @@ public sealed partial class PKMEditor : UserControl, IMainEditor
|
||||||
|
|
||||||
private void RefreshMovePP(int index)
|
private void RefreshMovePP(int index)
|
||||||
{
|
{
|
||||||
int move = WinFormsUtil.GetIndex(Moves[index]);
|
var cb = Moves[index];
|
||||||
|
int move = WinFormsUtil.GetIndex(cb);
|
||||||
var ppUpControl = PPUps[index];
|
var ppUpControl = PPUps[index];
|
||||||
int ppUpCount = ppUpControl.SelectedIndex;
|
int ppUpCount = ppUpControl.SelectedIndex;
|
||||||
if (move <= 0)
|
if (move <= 0)
|
||||||
|
@ -1702,9 +1703,11 @@ public sealed partial class PKMEditor : UserControl, IMainEditor
|
||||||
|
|
||||||
private void SetMoveDataSource(ComboBox c)
|
private void SetMoveDataSource(ComboBox c)
|
||||||
{
|
{
|
||||||
|
FieldsLoaded = false;
|
||||||
var index = WinFormsUtil.GetIndex(c);
|
var index = WinFormsUtil.GetIndex(c);
|
||||||
c.DataSource = new BindingSource(LegalMoveSource.Display.DataSource, null);
|
c.DataSource = new BindingSource(LegalMoveSource.Display.DataSource, null);
|
||||||
c.SelectedValue = index;
|
c.SelectedValue = index;
|
||||||
|
FieldsLoaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ValidateLocation(object sender, EventArgs e)
|
private void ValidateLocation(object sender, EventArgs e)
|
||||||
|
|
Loading…
Reference in a new issue