Click here to Skip to main content
15,923,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone

look i have this automate and i want Draw it in WPF

this Automate Draw by Glee library

dc622.4shared.com/img/0OIX8kM5/s3/0.11668664732174261/Auto.PNG


this code for Draw by Glee

C#
private void Drawing() {


                Graph g = new Graph("label");
                foreach (State state in states) {
                    if (state.Is_Start)
                    {
                        g.AddNode(state.Name).Attr.Color = Microsoft.Glee.Drawing.Color.Orange;
                    }
                    else if (state.Is_Finish) {
                        g.AddNode(state.Name).Attr.Shape = Microsoft.Glee.Drawing.Shape.DoubleCircle;
                    }
                    else {
                        g.AddNode(state.Name);
                    }

                    if (state.MyLinks != null)
                    foreach (Link_State link in state.MyLinks) {
                        g.AddEdge(state.Name, link.ValueLink.ToString(), link.MyLinkState.Name);
                    }


                gViewer.Graph = g;
            }
        }



class State content

C#
string name;
bool is_Finish;
bool is_Start;
List<Link_State> myLinks;


class Link_State content

C#
State myLinkState;
       char valueLink;



please help.....
Posted
Comments
Sergey Alexandrovich Kryukov 6-May-13 2:31am    
What do you mean "how"? By doing some hard work. Did you try anything?
—SA

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900