コード例 #1
0
 private void UpdateForm()
 {
     Age             = Convert.ToInt32(numericUpDown1.Value);
     Quality         = comboBox1.Text;
     button1.Enabled = InputValidator.validateAge(Age) &&
                       InputValidator.validateQuality(Quality);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 private void UpdateForm()
 {
     Quality         = comboBox1.Text;
     button1.Enabled = InputValidator.validateQuality(Quality);
 }