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"); }
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(); }
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; } } }
public abstract void VerwijderenReview(ReviewClass review);
public override void VerwijderenReview(ReviewClass review) { }
public void VerwijderenReview(ReviewClass review) { }