Exemplo n.º 1
0
        protected void BttnBkRev_Click(object sender, EventArgs e)
        {
            List <ReviewClass> reviews = (List <ReviewClass>)Session["reviews"];
            int         select         = LstBxProduct.SelectedIndex;
            ReviewClass review         = reviews[select];

            Session["review"] = review;
            Server.Transfer("review.aspx");
        }
Exemplo n.º 2
0
        protected void BttnComm_Click(object sender, EventArgs e)
        {
            string             inhoudcomment = TxtBxComm.Text;
            AdministratieClass administratie = (AdministratieClass)Session["administratie"];
            ReviewClass        review        = (ReviewClass)Session["review"];

            // account is null op het moment, je kunt pas een commentaar zetten als je bent inglogd
            // default account gebruiken
            AdresClass   adres = new AdresClass("Smirnofstraat", "5", "Den Bosch");
            AccountClass a     = new GeregistreerdeClass(1, "BarrieVanDerSloot", Convert.ToDateTime("05-02-89"), Geslacht.Man, adres, "Ramenwasser", "Media Design", "*****@*****.**", "beestje445", AbbonementClass.Gratis, Modstatus.Actief, "UniqueBarber");

            review.ToevoegenCommentaar(a, inhoudcomment);

            UpdatenComments();
        }
Exemplo n.º 3
0
        public void UpdatenComments()
        {
            ReviewClass review = (ReviewClass)Session["review"];

            LblTitel.Text    = review.Titel;
            TxtBxInhoud.Text = review.Inhoud;

            review.OphalenCommentaren();

            List <CommentaarClass> commentaren = review.Commentaren;

            for (int i = 0; i < commentaren.Count; i++)
            {
                if (i == 0)
                {
                    //LblAccComment.Visible = true;
                    //TxtBxAccComm.Visible = true;
                    //LblAccComment2.Text = "";
                    CommentaarClass commentaar = commentaren[commentaren.Count - 1];
                    LblAccComment.Text = commentaar.Account.Naam;
                    TxtBxAccComm.Text  = commentaar.InhoudComm;
                }
                if (i == 1)
                {
                    //LblAccComment2.Visible = true;
                    //TxtBxAccComm2.Visible = true;
                    CommentaarClass commentaar = commentaren[commentaren.Count - 2];
                    LblAccComment2.Text = commentaar.Account.Naam;
                    TxtBxAccComm2.Text  = commentaar.InhoudComm;
                }
                if (i == 2)
                {
                    //LblAccComment3.Visible = true;
                    //TxtBxAccComm3.Visible = true;
                    CommentaarClass commentaar = commentaren[commentaren.Count - 3];
                    LblAccComment3.Text = commentaar.Account.Naam;
                    TxtBxAccComm3.Text  = commentaar.InhoudComm;
                }
                if (i == 3)
                {
                    //LblAccComment4.Visible = true;
                    //TxtBxAccComm4.Visible = true;
                    CommentaarClass commentaar = commentaren[commentaren.Count - 4];
                    LblAccComment4.Text = commentaar.Account.Naam;
                    TxtBxAccComm4.Text  = commentaar.InhoudComm;
                }
            }
        }
Exemplo n.º 4
0
 public abstract void VerwijderenReview(ReviewClass review);
Exemplo n.º 5
0
 public override void VerwijderenReview(ReviewClass review)
 {
 }
Exemplo n.º 6
0
 public void VerwijderenReview(ReviewClass review)
 {
 }