Exemplo n.º 1
0
        private void GroupCountView_Load(object sender, EventArgs e)
        {
            this.Width      = screenWidth / 2 + 200;
            this.Height     = screenHeight / 2 + 200;
            gb_fiter.Height = this.Height;
            db = new Database();
            db.Connection();

            today       = DateTime.Today;
            todayString = today.ToString("dd-MM-yyyy");
            ov          = new orderView();
            addGBFoodType();
            addTakeTime();
            CountView();
            gb_location();
            thread = new Thread(() =>
            {
                while (++x > 0)
                {
                    ;
                }
            });
            thread.Start();
            System.Windows.Forms.Timer t = new System.Windows.Forms.Timer();
            t.Tick    += new EventHandler(t_tick);
            t.Interval = 10000;
            t.Start();
        }
Exemplo n.º 2
0
        private void kitchenView_Load(object sender, EventArgs e)
        {
            FLP1.Controls.Clear();
            today                = DateTime.Today;
            todayString          = today.ToString("dd-MM-yyyy");
            this.Width           = screenWidth;
            this.Height          = screenHeight;
            this.WindowState     = FormWindowState.Maximized;
            this.FormBorderStyle = FormBorderStyle.None;
            this.FLP1.Width      = screenWidth - 225;
            this.FLP1.Height     = screenHeight;
            this.panel1.Location = new Point(screenWidth - 200, 10);
            this.panel1.Width    = 400;
            this.panel1.Height   = screenHeight;

            db = new Database();
            db.Connection();
            labelList     = new List <Label>();
            oidList       = new List <String>();
            templabelList = new List <Label>();
            //gcv = new GroupCountView(login);
            gb_width();
            ov = new orderView();
            gbInformation();
            addGBFoodType();
            addTakeTime();
            gb_location();
            ratify();
            //orderView();
            thread = new Thread(() =>
            {
                while (++x > 0)
                {
                    ;
                }
            });
            thread.Start();
            System.Windows.Forms.Timer t = new System.Windows.Forms.Timer();
            t.Tick    += new EventHandler(t_tick);
            t.Interval = 10000;
            t.Start();
        }