private void btn_CNN_save_Click(object sender, EventArgs e) { var path = network.SaveCNN(tb_network_path.Text); if (path != "") { Console.WriteLine(path); tb_network_path.Text = path; Properties.Settings.Default.last_path_to_network = path; Properties.Settings.Default.Save(); Properties.Settings.Default.Upgrade(); MessageBox.Show("Network Saved"); } else { MessageBox.Show("Choose path for network save and try again"); } }