private void networkCountButton_Click(object sender, EventArgs e) //Нажатие на кнопку рассчёта значений вручную { if (textBox1.Text.Length != 0) { this.NeuralNetwork.inputData[0] = NeuralNetwork.activate(float.Parse(textBox1.Text), "sigmoid"); } else { this.NeuralNetwork.inputData[0] = NeuralNetwork.activate(0, "sigmoid"); } if (textBox2.Text.Length != 0) { this.NeuralNetwork.inputData[1] = NeuralNetwork.activate(float.Parse(textBox2.Text), "sigmoid"); } else { this.NeuralNetwork.inputData[1] = NeuralNetwork.activate(0, "sigmoid"); } float[] result = this.NeuralNetwork.launchNetwork(); this.labelAnswer.Text = result[0].ToString(); }