示例#1
0
文件: Form1.cs 项目: JokieW/LuckyHill
        private void Txt_userSuitcase_TextChanged(object sender, EventArgs e)
        {
            if (!_runTextHandler)
            {
                return;
            }
            string text     = txt_userSuitcase.Text;
            int    suitcase = -1;

            if (!String.IsNullOrEmpty(text))
            {
                try
                {
                    if (text.Length != 4)
                    {
                        return;
                    }
                    suitcase = SH2Exe.GetSuitcaseCodeIndex(text);
                    if (suitcase == -1)
                    {
                        return;
                    }
                }
                catch { return; }
            }

            StopPreviousUpdate();
            _currentInputs.suitcase = suitcase;
            UpdateResultList();
        }
示例#2
0
文件: Form1.cs 项目: JokieW/LuckyHill
        private void Bgw_listUpdate_DoWork(object sender, DoWorkEventArgs e)
        {
            BackgroundWorker worker = sender as BackgroundWorker;

            SH2Exe.SimulateRandomInitialisedFrom(_currentInputs, _settings, _resultsStack, worker);
        }