public void setValue(float gia, string path, string tenSanPham)
        {
            lbGia.Text = ConvertValue.convertValueMoney(gia);
            try
            {
                this.pic.Image = Image.FromFile(path);
            }
            catch
            {
                this.pic.Image = Image.FromFile("../../Asset/More/ic_image.png");
            }

            pic.SizeMode      = PictureBoxSizeMode.StretchImage;
            lbTenSanPham.Text = tenSanPham;
        }
Beispiel #2
0
 public void capnhapTongTien(int sl)
 {
     tongTien             = donGia * sl;
     this.lbTongTien.Text = ConvertValue.convertValueMoney(tongTien);;
 }