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; }
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; }