Example #1
0
 /// <summary>
 /// Constructeur pour mapper dto en Topic
 /// </summary>
 /// <param name="dto"></param>
 /// <param name="objuser"></param>
 /// <param name="objrubric"></param>
 public Topic(TopicDTO dto, Registered objuser, Rubric objrubric) : this()
 {
     IdTopic    = dto.IdTopic;
     ObjUser    = objuser;
     ObjRubric  = objrubric;
     DateTopic  = dto.DateTopic;
     TitleTopic = dto.TitleTopic;
     DescTopic  = AuditTool.StringToRtf(dto.DescTopic);
     DTO        = dto;
 }
Example #2
0
 /// <summary>
 /// Constructeur par défaut
 /// </summary>
 public Topic()
 {
     dal = new DALClient();
     ListMessagesByTopic = new List <Message>();
     IdTopic             = Int_NullValue;
     ObjUser             = new Registered();
     ObjRubric           = new Rubric();
     DateTopic           = DateTime_NullValue;
     TitleTopic          = String_NullValue;
     DescTopic           = String_NullValue;
     DTO = new TopicDTO();
 }
Example #3
0
 /// <summary>
 /// Constructeur complet
 /// </summary>
 /// <param name="idtopic"></param>
 /// <param name="objuser"></param>
 /// <param name="objrubric"></param>
 /// <param name="datetopic"></param>
 /// <param name="titletopic"></param>
 /// <param name="desctopic"></param>
 public Topic(int idtopic, Registered objuser, Rubric objrubric, DateTime datetopic, string titletopic, string desctopic) : this()
 {
     IdTopic        = idtopic;
     ObjUser        = objuser;
     ObjRubric      = objrubric;
     DateTopic      = datetopic;
     TitleTopic     = titletopic;
     DescTopic      = AuditTool.RtfToString(desctopic);
     DTO            = new TopicDTO();
     DTO.IdTopic    = idtopic;
     DTO.IdUser     = objuser.IdUser;
     DTO.IdRubric   = objrubric.IdRubric;
     DTO.DateTopic  = datetopic;
     DTO.TitleTopic = titletopic;
     DTO.DescTopic  = DescTopic;
 }