Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using MyCompany.MyApp.Web.UseCases;
- protected void MyFirstUserControl_SomeUIWorkflowRequestCommingIn(object sender, EventArgs e)
- {
- // some code here to respond and make "state" changes or whatever
- //
- // blah blah blah
- // finally we have this (how did we know to call fish level method?? because we knew when we wrote the code to send the event in the user control)
- UpdateUserInterfaceOnFishLevelUseCaseGoalSuccess(FishLevel.SomeNamedUIWorkflow.SelectedItemForPurchase)
- }
- protected void UpdateUserInterfaceOnFishLevelGoalSuccess(FishLevel.SomeNamedUIWorkflow goal)
- {
- switch (goal)
- {
- case FishLevel.SomeNamedUIWorkflow.NewMasterItemSelected:
- //call some UI related methods here including methods for the other user controls if necessary....
- break;
- case FishLevel.SomeNamedUIWorkFlow.DrillDownOnDetails:
- //call some UI related methods here including methods for the other user controls if necessary....
- break;
- case FishLevel.SomeNamedUIWorkFlow.CancelMultiSelect:
- //call some UI related methods here including methods for the other user controls if necessary....
- break;
- // more cases...
- }
- }
- }
- //also we have
- protected void UpdateUserInterfaceOnSeaLevelGoalSuccess(SeaLevel.SomeNamedUIWorkflow goal)
- {
- switch (goal)
- {
- case SeaLevel.CheckOutWorkflow.ChangedCreditCard:
- // do stuff
- // more cases...
- }
- }
- }
- class SeaLevel...
- class FishLevel...
- class KiteLevel...
Add Comment
Please, Sign In to add comment