Пример #1
0
        private void payAllButton_Click(object sender, EventArgs e)
        {
            int numberOfTable = selectedTable.NumberOfTable;

            IUsedTable table = tablesInUse.Where(x => x.NumberOfTable == numberOfTable).FirstOrDefault();

            newFormPayTotal = new PayTotal(this);
            newFormPayTotal.SendData(table);
            newFormPayTotal.FormBorderStyle = FormBorderStyle.FixedDialog;
            newFormPayTotal.MaximizeBox     = false;
            newFormPayTotal.MinimizeBox     = false;
            newFormPayTotal.StartPosition   = FormStartPosition.CenterScreen;
            newFormPayTotal.ShowDialog();
        }
Пример #2
0
        public void PayTotalPaymentDone()
        {
            foreach (IProduct p in newFormPayTotal.tableActual.Products)
            {
                soldProducts.Add(p);
            }

            tablesInUse.Remove(newFormPayTotal.tableActual);
            newFormPayTotal = null;

            SetAreasMenu();
            tablesListBox.Visible = false;

            SetCategoriesMenu(pageCategories);
            productsListBox.Visible = false;;
        }
Пример #3
0
 public void PayTotalFormClosed()
 {
     newFormPayTotal = null;
 }