private void button3_Click(object sender, EventArgs e) { int inputNodeCount, hiddenLayerCount, outputNodeCount; SimpleInput inputDialog = new SimpleInput(); inputNodeCount = inputDialog.Prompt("Please enter the number of input nodes (1-4).", "Input Nodes", 4); hiddenLayerCount = inputDialog.Prompt("Please enter the number of hidden layers (1-3).", "Hidden Layers", 3); outputNodeCount = inputDialog.Prompt("Please enter the number of output nodes (1-4).", "Output Nodes", 4); Double[] inputValues = new Double[inputNodeCount]; Random random = new Random(); for (int i = 0; i < inputNodeCount; i++) { inputValues[i] = random.NextDouble(); } myNeuralNet = new NeuralNet(inputValues, hiddenLayerCount, outputNodeCount, new int[] { 650, 480 }); updateNN(); lstNode.Items.Clear(); for (int i = 1; i <= inputNodes.Length; i++) { lstNode.Items.Add("Node " + i.ToString()); } Application.DoEvents(); }