Add settings tab to pkmdb/encdb

Quicker toggling compared to main window settings changing
same object
This commit is contained in:
Kurt 2024-10-16 12:49:12 -05:00
parent b068027ba8
commit be9767f3e6
2 changed files with 8 additions and 0 deletions

View File

@ -103,6 +103,10 @@ public SAV_Database(PKMEditor f1, SAVEditor saveditor)
L_Viewed.Text = string.Empty; // invisible for now
PopulateComboBoxes();
var settings = new TabPage { Text = "Settings" };
settings.Controls.Add(new PropertyGrid { Dock = DockStyle.Fill, SelectedObject = Main.Settings.EntityDb });
TC_SearchSettings.Controls.Add(settings);
// Load Data
B_Search.Enabled = false;
L_Count.Text = "Loading...";

View File

@ -94,6 +94,10 @@ public SAV_Encounters(PKMEditor f1, TrainerDatabase db)
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
GetTypeFilters();
var settings = new TabPage { Text = "Settings" };
settings.Controls.Add(new PropertyGrid { Dock = DockStyle.Fill, SelectedObject = Main.Settings.EncounterDb });
TC_SearchOptions.Controls.Add(settings);
// Load Data
L_Count.Text = "Ready...";