private void btn_neuralNetworkBrowse_Click(object sender, RoutedEventArgs e) { System.Windows.Forms.OpenFileDialog ofd = new System.Windows.Forms.OpenFileDialog(); ofd.Filter = "Text files (*.txt)|*.txt"; if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.tb_neuralNetwork.Text = ofd.FileName; NetworkHelper.CreateNetworkByTxt(ref nn, ofd.FileName); } }