Ejemplo n.º 1
0
        public CompletedOrders(Employee user)
        {
            employee = user;

            InitializeComponent();

            if (user.Position == Enum_Employee.Chef)
            {
                this.Text = "Completed Orders Kitchen";
            }
            else
            {
                this.Text = "Completed Orders Bar";
            }
            //timer for refreshing the form
            timer = new Timer();
            StartTimer(timer);

            //get all completed orders
            completedorders  = service.GetCompletedOrders();
            lbl_timenow.Text = DateTime.Now.ToString("HH:mm");
            ShowCompleteOrders();
        }
Ejemplo n.º 2
0
        public CompletedOrders(string view)
        {
            this.view = view;

            InitializeComponent();
            //timer for refreshing the form
            timer          = new Timer();
            timer.Interval = (1000);
            timer.Tick    += new EventHandler(timer1_Tick);
            timer.Start();
            //get all completed orders
            completedorders = service.GetCompletedOrders();
            ShowCompleteOrders();
        }