Beispiel #1
0
 public virtual void Copy(ViewObject obj)
 {
     Id = obj.Id;
     Name = obj.Name;
     IsDeleted = obj.IsDeleted;
     UserId = obj.UserId;
 }
Beispiel #2
0
 public override void Copy(ViewObject obj)
 {
     base.Copy(obj);
     var task = obj as Task;
     if (task != null)
     {
         Category = task.Category;
     }
 }
Beispiel #3
0
        public override void Copy(ViewObject obj)
        {
            base.Copy(obj);
            var cat = obj as Category;
            if (cat != null)
            {

            }
        }
Beispiel #4
0
 public override void Copy(ViewObject obj)
 {
     base.Copy(obj);
     var task = obj as PlanningTask;
     if (task != null)
     {
         Task = task.Task;
         Duration = task.Duration;
         Frequency = task.Frequency;
     }
 }
Beispiel #5
0
 public override void Copy(ViewObject obj)
 {
     base.Copy(obj);
     var user = obj as User;
     if (user != null)
     {
         Email = user.Email;
         WeekStartDay = user.WeekStartDay;
         WeekStartHour = user.WeekStartHour;
         NotifyWeekStarting = user.NotifyWeekStarting;
         NotifyWeekEnding = user.NotifyWeekEnding;
     }
 }