CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2005
    Posts
    74

    how to make an editable diagram file like visio UML file

    I'm implementing a small custom UML class drawer tool in VC#. i use tableLayoutPanle and a class being inherited from UserContol. I add all class attributes and relationships specifications in this class. my tool thoroughly show UML class and relationship. Here my teacher want to make it an editable file. i mean save these specification as a file, re-open it later and make some editing specification and adding new attribute or . Here i get a problem that i don't know how to make this editable file.

    some advise me - save these class specification in any access file or SQL server and reuse them. but i don't like this. I want to make a file like any other UML diagram file, Visio or Rational Rose. User can choose any file that he wants to modify. However, i don't know how to implement ...

    pls help me. I will demonstrate this to my teacher on this coming Monday.

    Thanks

  2. #2
    Join Date
    Jan 2009
    Posts
    6

    Re: how to make an editable diagram file like visio UML file

    Hi,

    Did you think about XML format to save and load data to your project? Read about XML serialization. You can use this method to store properies of your object in file.

    www.madartsoft.com C# controls, Help Desk Software

  3. #3
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: how to make an editable diagram file like visio UML file

    saving in SQL Server is very bad idea and saving in Access is not very good.
    i suggest save your data in XML-Like file that can be easily readen and updated.
    more logically you don't have a series of database like rows that you want to save them in access. your data structure is more tree-like
    also it is flexible and is a well known format and there are built-in libraries in .Net and also a lot of third party add-ins (open-source or comercial) for working with XML files.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  4. #4
    Join Date
    Jan 2005
    Posts
    74

    Re: how to make an editable diagram file like visio UML file

    Quote Originally Posted by toraj58 View Post
    there are built-in libraries in .Net and also a lot of third party add-ins (open-source or comercial) for working with XML files.
    pls tell me more or give me a link about libraries in .NET or any third party. I'd like to test them. thanks Toraj58 and All.

  5. #5
    Join Date
    Jun 2008
    Posts
    2,477

    Re: how to make an editable diagram file like visio UML file

    You can find them in the System.Xml namespace.

  6. #6
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: how to make an editable diagram file like visio UML file

    some of the classes that i have used in my projects are:

    XmlDocument
    XmlNode
    XmlElement

    and each of them with bunch of usefull method for working with XML.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured