Saturday, April 10, 2010

VS.NET 2010 Generating Sequence Diagram

Let us see how we can generate that. To do that I am going to create simple Windows Form Application project.

image

Now add a person class to the project and  using person class create a contact class as shown below.

image

      Now add a Button to the Form and add button Click event handler in that call GetName method of Contact class with Person class Id .
image

Now to generate the sequence diagram for this method just right click inside button_click event  as shown below.

image

     Now VS.NET IDE will generate the following Sequence diagram for the above Button_Click event method. 

image

Nandri(Thanks)

SreenivasaRagavan.

No comments: