示例#1
0
        ucBanHang InfoUcBanHang(string id, string username)
        {
            ucBanHang uc = new ucBanHang(this);

            uc.lbID.Text   = id;
            uc.lbUser.Text = username;
            return(uc);
        }
示例#2
0
        private void mnQLBanHang_Click(object sender, RoutedEventArgs e)
        {
            ucBanHang qlbh = new ucBanHang();

            qlbh.Nvdnto = Nvdto;
            pnlUC.Children.Clear();
            pnlUC.Children.Add(qlbh);
        }
示例#3
0
        public void loadYeuCau()
        {
            fpnlItem.Visible = true;
            fpnlItem.Controls.Clear();
            panel2.Controls.Clear();
            DataTable data = Data.Instance.GetTaiKhoan();

            foreach (DataRow item in data.Rows)
            {
                if (item["isduocban"].ToString() == "cho xac nhan")
                {
                    ucBanHang uc = new ucBanHang(this);
                    uc = InfoUcBanHang(item["id"].ToString(), item["username"].ToString());
                    fpnlItem.Controls.Add(uc);
                }
            }
        }