Esempio n. 1
0
        protected new void Page_Load(object sender, EventArgs e)
        {
            if (chk_alaplap.Checked)
            {
                placeholder1.Controls.Add(new Label {
                    Text = "Alaplapok:"
                });
                foreach (var item in Adatbazis.GetAlaplapok())
                {
                    AlaplapControl ac = (AlaplapControl)LoadControl("~/View/AlaplapControl.ascx");
                    ac.Tartalom = item;
                    placeholder1.Controls.Add(ac);
                }
            }

            if (chk_cpu.Checked)
            {
                placeholder1.Controls.Add(new Label {
                    Text = "Processzorok:"
                });
                foreach (var item in Adatbazis.GetProcesszorok())
                {
                }
            }

            if (chk_hdd.Checked)
            {
                placeholder1.Controls.Add(new Label {
                    Text = "Merevlemezek:"
                });
                foreach (var item in Adatbazis.GetHddk())
                {
                }
            }

            if (chk_vga.Checked)
            {
                placeholder1.Controls.Add(new Label {
                    Text = "Videókártyák"
                });
                foreach (var item in Adatbazis.GetVideokartyak())
                {
                }
            }

            if (chk_memoria.Checked)
            {
                placeholder1.Controls.Add(new Label {
                    Text = "Memóriák:"
                });
                foreach (var item in Adatbazis.GetMemoriaTipusok())
                {
                }
            }
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            basket = (List <AruCikk>)Session["basket"];
            user   = (Felhasznalo)Session["user"];

            label_nev.Text = user.Teljesnev + " kosara:";

            sum = 0;
            foreach (var item in basket)
            {
                AlaplapControl ac = (AlaplapControl)LoadControl("~/View/AlaplapControl.ascx");
                ac.VasarlasInaktiv = true;
                ac.Tartalom        = (Alaplap)item;
                placeholder1.Controls.Add(ac);
                sum += item.Ar;
            }

            label_ar.Text = "Ár összesen: " + sum.ToString();
        }
Esempio n. 3
0
 protected new void Page_Load(object sender, EventArgs e)
 {
     if (Request.Params["type"] == "alaplap")
     {
         AlaplapControl ac = (AlaplapControl)LoadControl("~/View/AlaplapControl.ascx");
         ac.ReszletekInaktiv = true;
         cikk = ac.Tartalom = Adatbazis.GetAlaplap(Int64.Parse(Request.Params["id"]));
         placeholder1.Controls.Add(ac);
     }
     else if (Request.Params["type"] == "cpu")
     {
     }
     else if (Request.Params["type"] == "hdd")
     {
     }
     else if (Request.Params["type"] == "vg")
     {
     }
     else if (Request.Params["type"] == "memoria")
     {
     }
 }