コード例 #1
0
        /// <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;
        }
コード例 #2
0
        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;
        }