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() { Publisher = textBox1.Text; button1.Enabled = InputValidator.validatePublisher(Publisher); }