public Form1() { InitializeComponent(); this.FormClosing += Form1_FormClosing; if (File.Exists(neuralNetworkFile)) { m_neuralNetwork = NeuralNetworkBL.NeuralNetwork.Deserialize(neuralNetworkFile); } else { m_neuralNetwork = new NeuralNetworkBL.NeuralNetwork(new[] { 16 * 16, 100, 4 }); } m_neuralNetwork.m_activationFunction = new LogisticFunction(); findSampleDirectory(); }