private void UpdateForm() { Age = Convert.ToInt32(numericUpDown1.Value); Quality = comboBox1.Text; button1.Enabled = InputValidator.validateAge(Age) && InputValidator.validateQuality(Quality); }
private void UpdateForm() { Title = titleTextBox.Text; Author = authorTextBox.Text; Publisher = publisherTextBox.Text; Year = Convert.ToInt32(yearNumericUpDown.Value); Quality = qualityTextBox.Text; Price = Convert.ToSingle(priceNumericUpDown.Value); button1.Enabled = InputValidator.validateTitle(Title) && InputValidator.validateAuthor(Author) && InputValidator.validatePublisher(Publisher) && InputValidator.validateYear(Year) && InputValidator.validateQuality(Quality) && InputValidator.validatePrice(Price); }
private void UpdateForm() { Quality = comboBox1.Text; button1.Enabled = InputValidator.validateQuality(Quality); }