예제 #1
0
        private void MbtnTerug_Click(object sender, EventArgs e)
        {
            OrderActionForm2 form = new OrderActionForm2(werknemer, tafelNummer);

            this.Close();
            form.Show();
        }
예제 #2
0
        public void Occupied(int tafelnummer)
        {
            //List<Tafel> tafels = tafelService.getTables();

            if (tables[tafelnummer - 1].bezet == true)
            {
                this.Close();
                OrderActionForm2 orderForm = new OrderActionForm2(werknemer, tafelnummer);
                orderForm.Show();
            }
            else
            {
                DialogResult dialogResult = MessageBox.Show("Wil je deze tafel op bezet zetten?", "Bezet zetten", MessageBoxButtons.YesNo);
                if (dialogResult == DialogResult.Yes)
                {
                    tafelService.EditStatus(tafelnummer, true);
                    this.Close();
                    OrderActionForm2 orderForm = new OrderActionForm2(werknemer, tafelnummer);
                    orderForm.Show();
                }
            }
        }