private void valueTextBox_TextChanged(object sender, EventArgs e) { saveButton.Enabled = controller.checkSave(valueTextBox.Text); saveButton.BackColor = controller.checkSave(valueTextBox.Text) ? Color.DarkOrange : Color.LightBlue; valueTextBox.BackColor = !AddlevelOfQualityController.isEmpty(valueTextBox.Text.Replace(" ", "")) ? Color.White : Color.LightBlue; }
public AddLevelOfQualityForm(FormValue <string, string> newFormValue) { InitializeComponent(); controller = new AddlevelOfQualityController(); formValue = newFormValue; }