ucBanHang InfoUcBanHang(string id, string username) { ucBanHang uc = new ucBanHang(this); uc.lbID.Text = id; uc.lbUser.Text = username; return(uc); }
private void mnQLBanHang_Click(object sender, RoutedEventArgs e) { ucBanHang qlbh = new ucBanHang(); qlbh.Nvdnto = Nvdto; pnlUC.Children.Clear(); pnlUC.Children.Add(qlbh); }
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); } } }