/// <summary> /// Creates a new many-to-many relationship between a weekday and a resource. /// </summary> /// <param name="weekday">The involved weekday.</param> /// <param name="resource">The involved resource.</param> public Activity(Weekday weekday, Pictogram pictogram, int order, ActivityState state) { this.Other = weekday; this.PictogramKey = pictogram.Id; this.Pictogram = pictogram; this.Order = order; this.State = state; }
/// <summary> /// Creates a new many-to-many relationship between a department and a resource. /// </summary> /// <param name="dep">The involved department.</param> /// <param name="resource">The involved resource.</param> public DepartmentResource(Department dep, Pictogram pictogram) { this.OtherKey = dep.Key; this.Other = dep; this.PictogramKey = pictogram.Id; this.Pictogram = pictogram; pictogram.LastEdit = DateTime.Now; Other.Resources.Add(this); pictogram.Departments.Add(this); }
/// <summary> /// Creates a new many-to-many relationship between a user and a resource. /// </summary> /// <param name="user">The involved user.</param> /// <param name="resource">The involved resource.</param> public UserResource(GirafUser user, Pictogram pictogram) { this.OtherKey = user.Id; this.Other = user; this.PictogramKey = pictogram.Id; this.Pictogram = pictogram; pictogram.LastEdit = DateTime.Now; Other.Resources.Add(this); pictogram.Users.Add(this); }
public WeekBase(Pictogram thumbnail) : this() { this.Thumbnail = thumbnail; }
public Week(Pictogram thumbnail) : base(thumbnail) { }