Exemplo n.º 1
0
        /// <summary>
        /// Create and display a Car Inventory instance as an MDI child.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void WindowCarList(object sender, EventArgs e)
        {
            // Create/call Car Inventory Form instance called listInstance.
            formCarInventory listInstance = formCarInventory.Instance;

            // Set it as an MDI child.
            listInstance.MdiParent = this;

            // Display the window.
            listInstance.Show();

            // Set focus to the new window.
            listInstance.Focus();
        }