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; } }
string name; bool is_Finish; bool is_Start; List<Link_State> myLinks;
State myLinkState; char valueLink;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)