mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-04-25 08:10:48 -05:00
Fix Memory editor Gen7 editor of Geolocation
set up binding for both comboboxes before setting data source skip setting up if entity does not expose these
This commit is contained in:
parent
7bfaad8e20
commit
cbb5ab0971
|
|
@ -20,18 +20,24 @@ public MemoryAmie(PKM pk)
|
|||
string[] arguments = L_Arguments.Text.Split(new[] { " ; " }, StringSplitOptions.None);
|
||||
|
||||
TextArgs = new TextMarkup(arguments);
|
||||
foreach (ComboBox comboBox in PrevCountries)
|
||||
|
||||
if (Entity is IGeoTrack)
|
||||
{
|
||||
comboBox.InitializeBinding();
|
||||
Main.SetCountrySubRegion(comboBox, "countries");
|
||||
foreach (var cb in PrevRegions)
|
||||
cb.InitializeBinding();
|
||||
foreach (var cb in PrevCountries)
|
||||
{
|
||||
cb.InitializeBinding();
|
||||
Main.SetCountrySubRegion(cb, "countries");
|
||||
}
|
||||
}
|
||||
foreach (var region in PrevRegions)
|
||||
region.InitializeBinding();
|
||||
else
|
||||
{
|
||||
tabControl1.TabPages.Remove(Tab_Residence);
|
||||
}
|
||||
|
||||
GetLangStrings();
|
||||
LoadFields();
|
||||
|
||||
if (pk is not IGeoTrack)
|
||||
tabControl1.TabPages.Remove(Tab_Residence);
|
||||
}
|
||||
|
||||
private bool init;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user