Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var graphViewportPainter = new GraphViewportPainter();

            this.viewportControl1.ViewportPainter = graphViewportPainter;

            DirectedGraphViewModel graphViewModel = CreateGraphViewModel();

            graphViewportPainter.GraphViewModel = graphViewModel;

            this.viewportControl1.RepaintViewport();
            this.viewportControl1.Refresh();
        }
 public NeatGenomeControl()
 {
     InitializeComponent();
     _graphViewportPainter            = new GraphViewportPainter();
     viewportControl1.ViewportPainter = _graphViewportPainter;
 }