Visual studio 05 Class designer
Aka “Whitehorse”. Visual studio 05 Class designer. Visual Representation of Types Symmetrically Linked to Solution Designer code view Changes in diagram immediately reflected in code view and vice-versa
Visual studio 05 Class designer
E N D
Presentation Transcript
Aka “Whitehorse” Visual studio 05 Class designer
Visual Representation of Types • Symmetrically Linked to Solution Designer code view • Changes in diagram immediately reflected in code view and vice-versa • Toolbox has type shapes -> drag onto design surface ; also has inheritance connectors, etc. • Allows review and refactoring of code visually Class designer features
Diagrams can be used for documentation -> can be saved in image format ->can link embedded image in say word document to image link, if diagram updated, embedded image will be updated. With powertoys can be saved as html • Extensible -> Class diagram is saved as xml (context open *.cd as xml), you can manipulate it as you wish Features cont’d
Does not directly show webform code-behind class or winform code view. • This may be added in Orcas • Main use is for business class design Limitations
Class designer Powertoys on GotDotNet (caution, GotDotNet going away, replacement not announced ;-( ) • Adds Pan/Zoom ->bottom right diag plus cross • Export to Html • Add comments on class shape -> highlight type and add text in box • Adds dongles for inheritance lines • Adds smart tag (green arrow box) for editing properties in place on diagram powertoys
GotDotNetPowertoys: http://tinyurl.com/lwqrv • Main Msdn Webcast: http://tinyurl.com/24eljc • Channel 9 Three Part Series: • Part 1: http://tinyurl.com/2b9pts • Part 2: http://tinyurl.com/22tjz2 • Part 3: http://tinyurl.com/2bxmx5 • Class Designer Team WebLog/blog and xml format for class designer: http://tinyurl.com/2fls42 references
Open Existing Solution ->Beerhouse – Add new item – Class Diagram • Drag class library source code from solution explorer to Class Diagram Design surface • Class Details Pane below • Toolbox Can create new types on design by dragging onto design surface • Context Menu on shapes -> Look and use functionality • Add constructor from context menu • Refactoring – Change namespace change class name • Orfan a class by changing its namespace in code and look at diagram and fix it from diagram Demo
Play with tool bar, show full signatures, etc. • Show inheritance from base class types including System.Object • Start New Class diagram from scratch add types and inheritance • Abstract class with virtual methods • Class Details Pane below demo