public Form1()
        {
            InitializeComponent();

            //Sample network so it looks cool
            net = new ArtificialNeuralNetwork(4, 3, 4);
            displayNetwork(net);
        }
        public void displayNetwork(ArtificialNeuralNetwork net)
        {
            //Display Network Nodes
            Series theSeries = chartNetwork.Series["Nodes"];

            theSeries.Points.Clear();
            foreach (DataPoint p in net.getDisplayNodes())
            {
                theSeries.Points.Add(p);
            }

            //Display Network Connections
            theSeries = chartNetwork.Series["Connections"];
            theSeries.Points.Clear();
            foreach (DataPoint p in net.getDisplayConnections())
            {
                theSeries.Points.Add(p);
            }
        }
        //Controls
        private void tbNodes_TextChanged(object sender, EventArgs e)
        {
            int numInputNodes  = 0;
            int numHiddenNodes = 0;
            int numOutputNodes = 0;

            try
            {
                numInputNodes  = Convert.ToInt32(tbInputNodes.Text);
                numHiddenNodes = Convert.ToInt32(tbHiddenNodes.Text);
                numOutputNodes = Convert.ToInt32(tbOutputNodes.Text);
            }
            catch
            {
                return;
            }

            //Create
            net = new ArtificialNeuralNetwork(numInputNodes, numHiddenNodes, numOutputNodes);

            //Show
            displayNetwork(net);
        }