private void btnLoadWeigths_Click(object sender, EventArgs e) { try { wieghtL = loadNN("Weights.data"); loadWeigths = true; checkWeight(); } catch //(System.IO.FileNotFoundException) { MessageBox.Show("Wieights.data Not Found"); } }
if (File.Exists(YourFilePath)) { wieghtL = loadNN("Weights.data"); loadWeigths = true; checkWeight(); } else { MessageBox.Show("Wieights.data Not Found"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)