private void btnQueue_Click(object sender, RoutedEventArgs e) { if (ValidateInputs()) { WindowQueueOptions queueOptions = new WindowQueueOptions(this); queueOptions.ShowDialog(); } }
private void btnQueue_Click(object sender, RoutedEventArgs e) { bool isValid = ValidateInput(); if (isValid) { WindowQueueOptions queueOptions = new WindowQueueOptions(this); queueOptions.ShowDialog(); } else { AppendLog("ERROR: Invalid Crop Inputs"); } }