mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-13 15:57:09 +00:00
create new binding for memory arg var
https://projectpokemon.org/home/forums/topic/45331-textvar/ possibly shares a reference thus causing it to be shared. Thanks Davil!
This commit is contained in:
parent
51a878d6a9
commit
6004886a56
1 changed files with 2 additions and 2 deletions
|
@ -212,7 +212,7 @@ namespace PKHeX.WinForms
|
|||
{
|
||||
CB_CTVar.DisplayMember = nameof(ComboItem.Text);
|
||||
CB_CTVar.ValueMember = nameof(ComboItem.Value);
|
||||
CB_CTVar.DataSource = argvals;
|
||||
CB_CTVar.DataSource = new BindingSource(argvals, null);
|
||||
if (index >= 0)
|
||||
LCTV.Text = vartypes[index];
|
||||
LCTV.Visible = CB_CTVar.Visible = CB_CTVar.Enabled = argvals.Count > 1;
|
||||
|
@ -221,7 +221,7 @@ namespace PKHeX.WinForms
|
|||
{
|
||||
CB_OTVar.DisplayMember = nameof(ComboItem.Text);
|
||||
CB_OTVar.ValueMember = nameof(ComboItem.Value);
|
||||
CB_OTVar.DataSource = argvals;
|
||||
CB_OTVar.DataSource = new BindingSource(argvals, null);
|
||||
if (index >= 0)
|
||||
LOTV.Text = vartypes[index];
|
||||
LOTV.Visible = CB_OTVar.Visible = CB_OTVar.Enabled = argvals.Count > 1;
|
||||
|
|
Loading…
Reference in a new issue