Exemplo n.º 1
0
        private void newShipmentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var rc = from Control c
                     in m_reportTab.Controls
                     where c is ReportControl
                     select c;
            ReportControl report = rc.First() as ReportControl;

            var ic = from Control c
                     in m_inventoryTab.Controls
                     where c is InventoryControl
                     select c;

            InventoryControl inventory = ic.First() as InventoryControl;

            ShipmentForm sf = new ShipmentForm(ref m_register,
                                               ref inventory,
                                               ref report);

            sf.ShowDialog();
        }