Example #1
0
 private void textBoxName_TextChanged(object sender, EventArgs e)
 {
     saveButton.Enabled    = controller.checkSaveForAll(textBoxName.Text, richTextBoxFactadress.Text, textBoxIndex.Text, textBoxINN.Text, maskedTextBoxPhone.Text);
     saveButton.BackColor  = controller.checkSaveForAll(textBoxName.Text, richTextBoxFactadress.Text, textBoxIndex.Text, textBoxINN.Text, maskedTextBoxPhone.Text) ? Color.DarkOrange : Color.LightBlue;
     textBoxName.BackColor = !AddContractorController.isEmpty(textBoxName.Text.Replace(" ", "")) ? Color.White : Color.LightBlue;
 }
Example #2
0
 private void textBoxName_TextChanged(object sender, EventArgs e)
 {
     saveButton.Enabled    = controller.checkSaveForAll(textBoxName.Text, richTextBoxFactadress.Text, textBoxIndex.Text, textBoxINN.Text);
     saveButton.BackColor  = controller.checkSaveForAll(textBoxName.Text, richTextBoxFactadress.Text, textBoxIndex.Text, textBoxINN.Text) ? Color.DarkOrange : Color.Red;
     textBoxName.BackColor = !AddContractorController.isEmpty(textBoxName.Text.Trim()) ? Color.White : Color.Red;
 }