mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-16 21:38:40 +00:00
Enhance setting suggested handling trainer via GUI
This commit is contained in:
parent
c1eb70f57c
commit
f5bc23d8af
1 changed files with 9 additions and 2 deletions
|
@ -417,15 +417,22 @@ namespace PKHeX.WinForms.Controls
|
|||
|
||||
private void SetDetailsHT(ITrainerInfo tr)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(tr.OT))
|
||||
var trainer = tr.OT;
|
||||
if (trainer.Length == 0)
|
||||
return;
|
||||
|
||||
if (TB_HT.Text.Length > 0)
|
||||
if (!tr.IsOriginalHandler(Entity, false))
|
||||
{
|
||||
TB_HT.Text = trainer;
|
||||
UC_HTGender.Gender = tr.Gender & 1;
|
||||
if (Entity is IHandlerLanguage)
|
||||
CB_HTLanguage.SelectedValue = tr.Language;
|
||||
}
|
||||
else if (TB_HT.Text.Length != 0)
|
||||
{
|
||||
if (CB_HTLanguage.SelectedIndex == 0 && Entity is IHandlerLanguage)
|
||||
CB_HTLanguage.SelectedValue = tr.Language;
|
||||
}
|
||||
}
|
||||
|
||||
private void SetForms()
|
||||
|
|
Loading…
Add table
Reference in a new issue