public void InitEmptyTextBoxHelpValues() { new List <KeyValuePair <Control, string> >() { new KeyValuePair <Control, string>(this.SystemStartString, "F+F+F"), new KeyValuePair <Control, string>(this.SystemRulestring, $"F=F+F{Environment.NewLine} F+=F") }.ForEach(pair => HandlersAppliedAtInitStep.AddEmptyTextBoxInfoMessage(pair.Key, pair.Value)); }
public void InitTextBoxValidationHandler() { new List <KeyValuePair <Control, Regex> >() { new KeyValuePair <Control, Regex>(this.RotateAngle, new Regex(@"^\d{1,3}$")), new KeyValuePair <Control, Regex>(this.SystemRulestring, new Regex(@"(^[\w\s+-_]+[=][\w\s+-_]+$)+")) }.ForEach(pair => HandlersAppliedAtInitStep.TextBoxColorTextValidation(pair.Key, pair.Value, _baseValidation)); }