mirror of
https://github.com/AdAstra-LD/DS-Pokemon-Rom-Editor.git
synced 2026-08-24 03:44:31 -05:00
Partial overhaul of Wild mons editor [HGSS]
This commit is contained in:
667
DS_Map/WildEditorHGSS.Designer.cs
generated
667
DS_Map/WildEditorHGSS.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -29,12 +29,27 @@ namespace DSPRE {
|
||||
|
||||
currentFile = new EncounterFileHGSS(selectEncounterComboBox.SelectedIndex);
|
||||
|
||||
/* Once the GUI overhaul is complete - i.e.: once everything is a TableLayoutPanel,
|
||||
* this can be simplified a lot. */
|
||||
foreach (TabPage page in mainTabControl.TabPages) {
|
||||
foreach (Control g in page.Controls) {
|
||||
if (g != null && g is GroupBox) {
|
||||
foreach (Control c in g.Controls) {
|
||||
if (c != null && c is ComboBox) {
|
||||
(c as ComboBox).DataSource = new BindingSource(names, string.Empty);
|
||||
if (c != null) {
|
||||
if (c is InputComboBox) {
|
||||
(c as InputComboBox).DataSource = new BindingSource(names, string.Empty);
|
||||
} else if (c is TableLayoutPanel) {
|
||||
TableLayoutPanel tbl = (c as TableLayoutPanel);
|
||||
|
||||
foreach (Control tblC in tbl.Controls) {
|
||||
if (c != null) {
|
||||
if (tblC is InputComboBox) {
|
||||
(tblC as InputComboBox).DataSource = new BindingSource(names, string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user