Example #1
0
 public Gopban(ucTable uctb, Table tb, frmMain f)
 {
     uctable = uctb;
     main    = f;
     this.tb = tb;
     InitializeComponent();
     chiaban();
 }
Example #2
0
 public ucChoseNew(frmMain f, ucTable tb, String num)
 {
     InitializeComponent();
     main         = f;
     this.num     = num;
     this.uctable = tb;
     label1.Text  = "BÀN : " + num;
     panel2.Controls.Add(label1);
     panel2.Height    = main.scHeight;
     label1.ForeColor = Color.Black;
     label1.Font      = new Font("Tahoma", 18);
     label1.Location  = new Point(10, 10);
     panel2.Width     = main.scWidth / 2;
     btnBack.Location = new Point(main.scWidth / 2 - btnBack.Width - 10, main.scHeight - btnBack.Height - 10 - panel1.Height);
     label7.Location  = new Point((panel2.Width - label7.Width) / 2, label7.Location.Y);
     label8.Location  = new Point((main.scWidth - panel2.Width - label8.Width) / 2, label7.Location.Y);
     panel4.Location  = new Point((panel2.Width - panel4.Width) / 2, panel4.Location.Y);
     txtGiomo.Text    = DateTime.Now.ToString("HH:mm:ss");
     txtNhanvien.Text = main.User;
     chiaban();
     btnBack.Location = new Point(panel2.Width - btnBack.Width - 10, main.scHeight - btnBack.Height - 10 - panel1.Height);
     btnOK.Location   = new Point(panel2.Width - btnBack.Width * 2 - 10, main.scHeight - btnBack.Height - 10 - panel1.Height);
 }
Example #3
0
        public ucChose(frmMain f, ucTable uctb, Table tb)
        {
            InitializeComponent();
            this.main        = f;
            this.tb          = tb;
            this.uctable     = uctb;
            panel1.Width     = btnBack.Width * 2 + 20;
            btnBack.Location = new Point(panel1.Width - btnBack.Width - 10, main.scHeight - btnBack.Height - 10);
            panel2.Height    = main.scHeight / 2;
            panel4.Dock      = DockStyle.Fill;
            lvMonAn.Width    = main.scWidth - panel1.Width;
            lvMonAn.Location = new Point(0, 65);
            lvMonAn.Height   = main.scHeight - panel2.Height - 65;
            int partwidth = lvMonAn.Width / 100;

            this.columnHeader1.Width = partwidth * 45;
            this.columnHeader2.Width = partwidth * 5;
            this.columnHeader3.Width = partwidth * 15;
            this.columnHeader4.Width = partwidth * 15;
            this.columnHeader5.Width = partwidth * 30;
            timer1.Start();
            for (int i = 0; i < 20; i++)
            {
                btnMa.Add(new Button());
            }
            createButton();
            loaddanhmuc();
            loadData();
            btnGhichu.Location      = new Point(10, btnBack.Location.Y - 60 - 2);
            btnXoamon.Location      = new Point(btnBack.Location.X, btnBack.Location.Y - 60 - 2);
            btnGopban.Location      = new Point(btnBack.Location.X, btnBack.Location.Y - 120 - 4);
            btnThanhtoan.Location   = new Point(btnBack.Location.X, btnBack.Location.Y - 180 - 6);
            btnXoaorder.Location    = new Point(10, btnBack.Location.Y - 120 - 4);
            btnDoithongtin.Location = new Point(10, btnBack.Location.Y - 180 - 6);
            btnCapnhat.Location     = new Point(10, btnBack.Location.Y);
        }
Example #4
0
 public frmMain()
 {
     InitializeComponent();
     _login = new ucLogin(this);
     _table = new ucTable(this);
 }