コード例 #1
0
        private void txtValue_TextChanged(object sender, EventArgs e)
        {
            if (Working)
            {
                return;
            }
            FileChanged = true;
            Working     = true;

            CurrentReq.UI_TextValue_Set(txtValue.Text);

            try
            {
                txtValue.ForeColor = Color.Black;
                Regex r = new Regex(txtValue.Text);
            }
            catch (Exception ex)
            {
                txtValue.ForeColor = Color.OrangeRed;
            }

            lstRequirements.Items[CurrentReqNum] = CurrentReq.DisplayString();
            lstRules.Invalidate();
            lstRequirements.Invalidate();

            RefreshColorSample();

            Working = false;
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: obfuscators-2019/VirindiTank
        private void txtValue_TextChanged(object sender, EventArgs e)
        {
            if (Working)
            {
                return;
            }
            FileChanged = true;
            Working     = true;

            CurrentReq.UI_TextValue_Set(txtValue.Text);

            lstRequirements.Items[CurrentReqNum] = CurrentReq.DisplayString();
            lstRules.Invalidate();
            lstRequirements.Invalidate();

            RefreshColorSample();

            Working = false;
        }