protected override void OnClosed(EventArgs e) { mSimpleTestWin.OnClosed(e); mStressTestWin.OnClosed(); SF.GlobalEngine.Stop(); var StresssTestGameID1 = MainWindow.GetGameIDFromUI(MainWindow.Instance.stress_comboBoxGameID_10KB); var StresssTestGameID2 = MainWindow.GetGameIDFromUI(MainWindow.Instance.stress_comboBoxGameID_Match); var StresssTestGameID3 = MainWindow.GetGameIDFromUI(MainWindow.Instance.stress_comboBoxGameID_Matced10KB); var StresssTestGameID4 = MainWindow.GetGameIDFromUI(MainWindow.Instance.stress_comboBoxGameID_TestLogin); ServerAddressRegistry.SaveGameID(0, StresssTestGameID1); ServerAddressRegistry.SaveGameID(1, StresssTestGameID2); ServerAddressRegistry.SaveGameID(2, StresssTestGameID3); ServerAddressRegistry.SaveGameID(3, StresssTestGameID4); ServerAddressRegistry.AddServerAddress(1, stress_comboBoxIPAddress.Text); ServerAddressRegistry.AddServerAddress(0, comboBoxIPAddress.Text); ServerAddressRegistry.SaveServerAddressToRegistry(); ServerAddressRegistry.SaveLoginIDFromRegistry(); ServerAddressRegistry.SaveValue(SAVE_PREFIX_KEY_ID, PreFixUserID.Text); ServerAddressRegistry.SaveValue(SAVE_USER_BEGIN_NUM_KEY_ID, UserBeginIdNum.Text); ServerAddressRegistry.SaveValue(SAVE_TENKBGRUCOUNT_KEY_ID, TenKBInGroupUserCount.Text); ServerAddressRegistry.SaveValue(SAVE_TENKBMAXUSERCOUNT_KEY_ID, TenKBMaxUserNumber.Text); ServerAddressRegistry.SaveValue(SAVE_MATCHGRUCOUNT_KEY_ID, MatchInGroupUserCount.Text); ServerAddressRegistry.SaveValue(SAVE_MATCHMAXUSERCOUNT_ID, MatchKBMaxUserNumber.Text); ServerAddressRegistry.SaveValue(SAVE_LOGINTGRUCOUNT_KEY_ID, TestLoginInGroupUserCount.Text); ServerAddressRegistry.SaveValue(SAVE_LOGINTMAXUSERCOUNT_ID, TestLoginMaxUserNumber.Text); ServerAddressRegistry.SaveValue(SAVE_TAB_INDEX_ID, StressTestTab.SelectedIndex.ToString()); mStressTestWin = null; base.OnClosed(e); }
protected override void OnClosed(EventArgs e) { mStressTestWin.OnClosed(); if (m_Engine != null) { m_Engine.StopEngine(); } m_Engine = null; var StresssTestGameID1 = MainWindow.GetGameIDFromUI(MainWindow.Instance.RankTest_GameID); var StresssTestGameID2 = MainWindow.GetGameIDFromUI(MainWindow.Instance.stress_comboBoxGameID_Match); var StresssTestGameID3 = MainWindow.GetGameIDFromUI(MainWindow.Instance.stress_comboBoxGameID_Matced10KB); ServerAddressRegistry.SaveGameID(0, StresssTestGameID1); ServerAddressRegistry.SaveGameID(1, StresssTestGameID2); ServerAddressRegistry.SaveGameID(2, StresssTestGameID3); ServerAddressRegistry.AddServerAddress(1, stress_comboBoxIPAddress.Text); // ServerAddressRegistry.AddServerAddress(0, comboBoxIPAddress.Text); ServerAddressRegistry.SaveServerAddressToRegistry(); ServerAddressRegistry.SaveLoginIDFromRegistry(); ServerAddressRegistry.SaveValue(SAVE_PREFIX_KEY_ID, PreFixUserID.Text); ServerAddressRegistry.SaveValue(SAVE_USER_BEGIN_NUM_KEY_ID, UserBeginIdNum.Text); ServerAddressRegistry.SaveValue(SAVE_MATCHGRUCOUNT_KEY_ID, MatchInGroupUserCount.Text); ServerAddressRegistry.SaveValue(SAVE_MATCHMAXUSERCOUNT_ID, MatchKBMaxUserNumber.Text); mStressTestWin = null; base.OnClosed(e); }