示例#1
0
        private void dataEntryItemClick(object sender, System.EventArgs e)
        {
            a4DataValidateForm dvf = new a4DataValidateForm(refDo);

            dvf.ShowDialog();
            MessageBox.Show(refDo.toString());
        }
示例#2
0
        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);
        }