public static NeuralNetworkConfiguration Open(string fileName) { BinaryFileSerializationManager fileManager = new BinaryFileSerializationManager(); NeuralNetworkConfiguration nnc = (NeuralNetworkConfiguration)fileManager.Open(fileName); return(nnc); }
private void openDlg_FileOk(object sender, CancelEventArgs e) { htEncoding = ((Dictionary <string, string>)binaryFileManager.Open(openDlg.FileName)); EncodingFormateConvertor.HashToDataTable(htEncoding, dtGrid); if (htEncoding.ContainsKey("<IsBinaryString>")) { chkIsBinaryString.Checked = bool.Parse(htEncoding["<IsBinaryString>"]); } }
private void button1_Click(object sender, EventArgs e) { openFileDialog2.ShowDialog(); BinaryFileSerializationManager fileManager = new BinaryFileSerializationManager(); _EncodingDictionary = (Dictionary <string, string>)fileManager.Open(openFileDialog2.FileName); DataTable dt = EncodingFormateConvertor.HashToDataTable(_EncodingDictionary); dataGridView2.DataSource = dt; lblHashCodeRecordCount.Text = dt.Rows.Count.ToString(); }