/// <summary> /// Read master detail records into an array of /// Master records (customers) which in turn /// contain an array of detail records (orders) /// /// The ExampleSelector tells the engine which /// record type to use. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdRun_Click(object sender, EventArgs e) { MasterDetailEngine engine = new MasterDetailEngine(typeof(Customers), typeof(Orders), new MasterDetailSelector(ExampleSelector)); // to Read use: MasterDetails[] res = engine.ReadString(txtData.Text); grid1.SelectedObject = res; }
private void cmdRun_Click(object sender, EventArgs e) { MasterDetailEngine engine = new MasterDetailEngine(typeof(Customers), typeof(Orders), new MasterDetailSelector(ExampleSelector)); // to Read use: MasterDetails[] res = engine.ReadString(txtData.Text); grid1.SelectedObject = res; }