// Here, we will opt for simplicity. However, we could easily update
// AutoLotDAL.dll with a new method to place a new order within the Orders table.
System.Windows.Forms.MessageBox.Show("Your credit has been approved!");
}
To complete your workflow, add a final CodeActivity to the rightmost branch directly after the
ProcessCreditRiskActitity. Name this new activity ShowDenyMessageActivity, which is mapped to
the following method:
private void CreditDenied(object sender, EventArgs e)
{
System.Windows.Forms.MessageBox.Show("You are a CREDIT RISK!",
"Order Denied!");
}
At this point, your workflow looks something like Figure 26-26.
Do'stlaringiz bilan baham: |