private void ValidateData(object sender, EventArgs e)
 {
     OK.IsEnabled = Validation.IsValid(NameTextBox) &&
                    Validation.IsValid(AccountNameTextBox) &&
                    Validation.IsValid(FileFormatComboBox);
 }
Пример #2
0
 private void ValidateData(object sender, EventArgs e)
 {
     OK.IsEnabled = ((CreateNewIssue && Validation.IsValid(CommentTextBox)) ||
                     (!CreateNewIssue && Validation.IsValid(IssueNumberTextBox))) &&
                    Validation.IsValid(FileNameTextBox);
 }