Exemple #1
0
 /// <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;
 }
Exemple #2
0
        /// <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);
        }
Exemple #3
0
        /// <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);
        }
Exemple #4
0
 public WeekBase(Pictogram thumbnail) : this()
 {
     this.Thumbnail = thumbnail;
 }
Exemple #5
0
 public Week(Pictogram thumbnail) : base(thumbnail)
 {
 }