LumiCode gets call information from .NET assemblies, but occasionally you may need to specify calls that don't exist in your code. There are two reasons you may want to do this:
Because User Objects don't exist in your code, any calls between them and your code objects will need to be specified by User Calls.
Sometimes a complete call chain does not exist in the assemblies you are modeling. For example, when your code calls a system method, and through some chain of calls, a method from your code gets called.
This commonly occurs when you develop a custom control. Your code may call Invalidate on your control, and through a chain of system method calls, your OnPaint method will get called. To show this ultimate outcome on your sequence diagram, you can define a user call.
Under the Project menu, click User Calls, and then click New.
Click the Select button for the calling method, and then drill down to the method that will be making the call. Click OK.
Click the Select button for the called method, and then drill down to the method that will be called. Click OK.
Click OK.
You will see the User Call has been added.
Click Close to exit the User Calls dialog.
The caller method for a User Call may call other methods also. Because of this, you need to be able to specify where, in relation to the other called methods, your User Call falls. To do this:
Under the Project menu, click User Calls.
Select the User Call you want to set the order for.
Click Set Order.
Your user call will be at the bottom of the list initially, and it's name will be black.
Click the up or down arrows until it's positioned where it belongs.
Click Close to exit the Set Call Order dialog.
Click Close to exit the User Calls dialog.
Under the Project menu, click User Calls.
Select the User Call you want to remove.
Click Remove.
Click OK to confirm.
Click Close to exit the User Calls dialog.
Copyright © 2006-2010 Lumikon Software, Inc. All rights reserved.