public void InitStressTest() { for (int i = 0; i < SendChatRepeatCount; i++) { // 65 A ~~~ char d = (char)(65 + i); mTestSend1KBData[i] = string.Empty; mTestSend1KBData[i] = mTestSend1KBData[i].PadRight(ChatDataTestSize, d); // mPartyChatSendTime[i] = DateTime.MaxValue; } //{ // char d = (char)(65); // mTestStatic1KBData = mTestStatic1KBData.PadRight(1024,d); // mTestStatic1KBData += '\0'; //} mPartyChatSendTime.Clear(); var StresssTestGameID = "MyTownHero"; MainWindow.InitGameIDComboBox(MainWindow.Instance.stress_comboBoxGameID_Matced10KB, StresssTestGameID); MainWindow.Instance.stress_comboBoxGameID_Matced10KB.SelectedItem = ServerAddressRegistry.ReadGameID(2, StresssTestGameID).ToString(); MainWindow.Instance.SendCountTitle_Copy.Content = string.Format("{0}KB Send Count", ChatDataTestSize / 1024); MainWindow.Instance.SendSuccessTitle_Copy.Content = string.Format("{0}KB Success Count", ChatDataTestSize / 1024); // UpdateTestUserStateUI(); }
void UpdateUI() { MainWindow.Instance.comboBoxGameID.SelectedItem = ServerAddressRegistry.ReadGameID(100, SimpleTestGameID).ToString(); UpdateLoginIDUI(); }
public void InitStressTest() { InputMethod.SetIsInputMethodEnabled(MainWindow.Instance.TestLoginInGroupUserCount, false); InputMethod.SetIsInputMethodEnabled(MainWindow.Instance.TestLoginMaxUserNumber, false); var StresssTestGameID = "MyTownHero"; MainWindow.InitGameIDComboBox(MainWindow.Instance.stress_comboBoxGameID_TestLogin, StresssTestGameID); MainWindow.Instance.stress_comboBoxGameID_TestLogin.SelectedItem = ServerAddressRegistry.ReadGameID(3, StresssTestGameID).ToString(); UpdateStatueUI(); }
public void InitStressTest() { InputMethod.SetIsInputMethodEnabled(MainWindow.Instance.MatchKBMaxUserNumber, false); InputMethod.SetIsInputMethodEnabled(MainWindow.Instance.MatchInGroupUserCount, false); var StresssTestGameID = "MyTownHero"; MainWindow.InitGameIDComboBox(MainWindow.Instance.stress_comboBoxGameID_Match, StresssTestGameID); MainWindow.Instance.stress_comboBoxGameID_Match.SelectedItem = ServerAddressRegistry.ReadGameID(1, StresssTestGameID).ToString(); // MainWindow.Instance.buttonManual_Matcing.IsEnabled = false; // MainWindow.Instance.buttonManual_Matcing.Visibility = Visibility.Hidden; UpdateMatchingTestStatueUI(); }
public void InitStressTest() { int ChatDataTestSize = 1024 / 2; for (int i = 0; i < SendChatRepeatCount; i++) { // 65 A ~~~ char d = (char)(65 + i); mTestSend1KBData[i] = string.Empty; mTestSend1KBData[i] = mTestSend1KBData[i].PadRight(ChatDataTestSize, d); mPartyChatSendTime[i] = DateTime.MaxValue; } var StresssTestGameID = "MyTownHero"; MainWindow.InitGameIDComboBox(MainWindow.Instance.stress_comboBoxGameID_Matced10KB, StresssTestGameID); MainWindow.Instance.stress_comboBoxGameID_Matced10KB.SelectedItem = ServerAddressRegistry.ReadGameID(2, StresssTestGameID).ToString(); // UpdateTestUserStateUI(); }
public void InitStressTest() { InputMethod.SetIsInputMethodEnabled(MainWindow.Instance.TenKBMaxUserNumber, false); InputMethod.SetIsInputMethodEnabled(MainWindow.Instance.TenKBInGroupUserCount, false); int DataTestSize = 1024; mTestSendData = new byte[DataTestSize]; for (int iData = 0; iData < DataTestSize; iData++) { mTestSendData[iData] = (byte)iData; } var StresssTestGameID = "MyTownHero"; MainWindow.InitGameIDComboBox(MainWindow.Instance.stress_comboBoxGameID_10KB, StresssTestGameID); MainWindow.Instance.stress_comboBoxGameID_10KB.SelectedItem = ServerAddressRegistry.ReadGameID(0, StresssTestGameID).ToString(); MainWindow.Instance.buttonSendData_Manaul.IsEnabled = false; MainWindow.Instance.buttonSendData_Manaul.Visibility = Visibility.Hidden; UpdateTestUserStateUI(); }