private void linkLabelMissing_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Control parent = Parent; while (!(parent is FFRKTabInspector)) { parent = parent.Parent; } FFRKTabInspector tab_control = (FFRKTabInspector)parent; tab_control.DatabaseTab.DatabaseMode = DatabaseUI.FFRKViewDatabase.DatabaseModeEnum.MissingItems; tab_control.SelectedPage = FFRKTabInspector.InspectorPage.Database; }
public void OnLoad() { LoadAppSettings(); mInstance = this; mResponseHandlers = new List<IResponseHandler>(); mResponseHandlers.Add(new HandleAppInitData()); mResponseHandlers.Add(new HandlePartyList()); mResponseHandlers.Add(new HandleListBattles()); mResponseHandlers.Add(new HandleListDungeons()); mResponseHandlers.Add(new HandleLeaveDungeon()); mResponseHandlers.Add(new HandleInitiateBattle()); mResponseHandlers.Add(new HandleGachaSeriesList()); mResponseHandlers.Add(new HandleGachaSeriesDetails()); mResponseHandlers.Add(new HandleCompleteBattle()); mHistory = new ResponseHistory(); mGameState = new GameState(); // Do this first, because some of the form's OnLoad events register event handlers with it. mDatabaseInstance = new FFRKMySqlInstance(); mCache = new FFRKDataCache(); // Do this before initializing the connection, because when it's done we need to update the // UI. mTabPage = new TabPage("FFRK Inspector"); mInspectorView = new FFRKTabInspector(); mInspectorView.Dock = DockStyle.Fill; mTabPage.Controls.Add(mInspectorView); FiddlerApplication.UI.tabsViews.TabPages.Add(mTabPage); // Do this last mDatabaseInstance.OnConnectionInitialized += mDatabaseInstance_OnConnectionInitialized; mDatabaseInstance.OnSchemaError += mDatabaseInstance_OnSchemaError; mDatabaseInstance.InitializeConnection(MinimumRequiredSchema); }