private void ShowGraphs_Click(object sender, EventArgs e) { if (Graph != null) { GenStrongConnectedComponentGraph(); Gl.glClear(Gl.GL_COLOR_BUFFER_BIT); Gl.glLoadIdentity(); DrawStrongConnectedComponents(); DrawEdgesBetweenConnectedComponents(); for (int i = 0; i < Graph.VerticesCount; ++i) { DrawText2D(VertexCoords[i].X + 2, VertexCoords[i].Y + 2, (VertexCoords[i].Index).ToString()); } Gl.glFlush(); DisplayForGraph.Invalidate(); } else { MessageBox.Show("Graph == null", "Error"); } }
public HelpKsyuMainWindow() { InitializeComponent(); DisplayForGraph.InitializeContexts(); InitOpenGL(); }