Exemplo n.º 1
0
        private void CloseSale()
        {
            SaleController saleController = new SaleController();

            saleController.Close();

            NewSaleToolStripMenuItem.Enabled                  = true;
            NewOrderToolStripMenuItem.Enabled                 = false;
            ViewTotalsToolStripMenuItem.Enabled               = false;
            ToolStripTotals.Enabled                           = false;
            CloseCurrentSaleToolStripMenuItem.Enabled         = false;
            toolStripOrderButton.Enabled                      = false;
            toolStripStartingCash.Enabled                     = false;
            initialSaleContributionsToolStripMenuItem.Enabled = false;
            StatusStrip1.Items[0].Text                        = "No sale currently open. To start a new sale, click New Sale under File menu.";

            foreach (Form frm in this.MdiChildren)
            {
                frm.Close();
            }
        }