Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();

            Instance = this;

            SF.GlobalEngine.Start("TestNet.WInSharp");


            using (RegistryKey key = Registry.CurrentUser.CreateSubKey(RegistryKeyName))
            {
            }

            string IniFilePath = string.Format("{0}/default.ini", System.IO.Directory.GetCurrentDirectory());

            if (!ServerAddressRegistry.ReadServerAddress(0))
            {
                ServerAddressRegistry.SetDefaultServerAddress(0, IniFilePath);
            }

            if (!ServerAddressRegistry.ReadServerAddress(1))
            {
                ServerAddressRegistry.SetDefaultServerAddress(1, IniFilePath);
            }

            ServerAddressRegistry.ReadLoginID();

            int MaxUserValue = 400;

            if (ServerAddressRegistry.ReadMaxUser(IniFilePath, ref MaxUserValue))
            {
                StressTestWindowDataTest.MaxUser  = MaxUserValue;
                StressTestWindowMatchTest.MaxUser = MaxUserValue;
                StressTestWindowLoginTest.MaxUser = MaxUserValue;
            }

            mSimpleTestWin.InitSimpleTest();
            mStressTestWin.InitStressTest();

            int TabIndex = Convert.ToInt32(ServerAddressRegistry.ReadValue(SAVE_TAB_INDEX_ID, "0"));

            StressTestTab.SelectedIndex = TabIndex;
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

            Instance = this;

            m_Engine = new Engine();
            m_Engine.StartEngine();


            using (RegistryKey key = Registry.CurrentUser.CreateSubKey(RegistryKeyName))
            {
            }

            string IniFilePath = string.Format("{0}/default.ini", System.IO.Directory.GetCurrentDirectory());

            if (!ServerAddressRegistry.ReadServerAddress(0))
            {
                ServerAddressRegistry.SetDefaultServerAddress(0, IniFilePath);
            }

            if (!ServerAddressRegistry.ReadServerAddress(1))
            {
                ServerAddressRegistry.SetDefaultServerAddress(1, IniFilePath);
            }

            ServerAddressRegistry.ReadLoginID();

            int MaxUserValue = 400;

            if (ServerAddressRegistry.ReadMaxUser(IniFilePath, ref MaxUserValue))
            {
                StressTestWindowMatchTest.MaxUser = MaxUserValue;
            }

            mStressTestWin.InitStressTest();
        }