private void dataEntryItemClick(object sender, System.EventArgs e) { a4DataValidateForm dvf = new a4DataValidateForm(refDo); dvf.ShowDialog(); MessageBox.Show(refDo.toString()); }
private void dataEntryItemClick(object sender, System.EventArgs e) { /* if dataobject.xml exists, deserialize it and feed to refDo * after user enters or updates, serialize it back */ string filePath = "dataobject.xml"; if (File.Exists(filePath)) { MessageBox.Show("Data object deserialized from dataobject.xml"); deserializeObject(filePath); } a4DataValidateForm dvf = new a4DataValidateForm(refDo); dvf.ShowDialog(); MessageBox.Show("Data object serialized to dataobject.xml"); // MessageBox.Show(refDo.toString()); serializeObject(filePath); }