Пример #1
0
        private void btn_OrdersChangeConfirm_Click(object sender, EventArgs e)
        {
            ViewOrders viewOrders = ViewOrders.GetInstances();

            if (btn_OrdersChangeConfirm.Text == "Wijzig")
            {
                btn_OrdersDelete.Show();
                btn_OrdersMinus.Show();
                btn_OrdersPlus.Show();

                btn_OrdersBackCancel.Text    = "Annuleer";
                btn_OrdersChangeConfirm.Text = "Bevestig";
            }
            else if (btn_OrdersChangeConfirm.Text == "Bevestig")
            {
                order_Service.ChangeOrders(viewOrders.ConfirmChanges());
                ShowPanel("ViewOrders");
            }
        }