private void button3_Click(object sender,EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.CheckFileExists=true; dlg.CheckPathExists=true; dlg.Filter="xml files (*.xml)|*.xml"; dlg.Multiselect=false; if (dlg.ShowDialog()==DialogResult.OK) { ConvolutionalXMLSerializer serializer=new ConvolutionalXMLSerializer(); Network=serializer.Deserialize(XDocument.Load(dlg.FileName)); Network.LearnFactor=0.0005; Loaded=true; } }