private void deserializeObject(string filename) { XmlSerializer serializer = new XmlSerializer(typeof(a4DataObject)); FileStream fs = new FileStream(filename, FileMode.Open); XmlReader reader = new XmlTextReader(fs); this.refDo = (a4DataObject)serializer.Deserialize(reader); fs.Close(); }
public a4MainForm(a4DataObject ddo) { InitializeComponent(); refDo = ddo; }
public a4DataValidateForm(a4DataObject ddo) { InitializeComponent(); refDo = ddo; }
static void Main(string[] args) { a4DataObject ddo = new a4DataObject(); Application.Run(new a4MainForm(ddo)); }