private void btnNewSubmitterRequest_Click(object sender, RoutedEventArgs e) { // New Submtter Request Workflow: // Create New Submitter Request - Request ID is retured. // Send the MOU PDF document associated with the Request ID. // If Submitter Type is 'Other (32) send the COI PDF document associated with the Request ID. createNewSubmitterRequest(); // If successfull the tbRequestID.Text field will have the new Request ID. sendPDFFile("MOU"); if (tbSubmitterTypeValue.Text == "32") { sendPDFFile("COI"); } }