Exemplo n.º 1
0
        private void but_child_form(object sender, EventArgs e)
        {
            Button but = (Button)sender;

            switch (but.Name)
            {
            case "but_home":
                this.screen.Controls.Clear();
                ThongBao formAnnounce = new ThongBao();
                call_form(formAnnounce);
                break;

            case "but_ncc":
                this.screen.Controls.Clear();
                NhaCungCap formNCC = new NhaCungCap();
                call_form(formNCC);
                break;

            case "but_phieu_nhap":
                this.screen.Controls.Clear();
                PhieuNhap formPhieuNhap = new PhieuNhap();
                call_form(formPhieuNhap);
                break;

            case "but_mat_hang":
                this.screen.Controls.Clear();
                MatHang formMH = new MatHang();
                call_form(formMH);
                break;

            case "but_loai_hang":
                this.screen.Controls.Clear();
                LoaiHang formLH = new LoaiHang();
                call_form(formLH);
                break;

            case "but_quay":
                this.screen.Controls.Clear();
                QuayHang formQuayHang = new QuayHang();
                call_form(formQuayHang);
                break;

            case "but_phieu_xuat":
                this.screen.Controls.Clear();
                QLXuat form_phieu_xuat = new QLXuat();
                call_form(form_phieu_xuat);
                break;

            case "but_nhan_vien":
                this.screen.Controls.Clear();
                NhanVien form_nv = new NhanVien();
                call_form(form_nv);
                break;

            case "but_thong_ke":
                this.screen.Controls.Clear();
                ThongKe form_chart = new ThongKe();

                call_form(form_chart);
                break;
            }
        }