예제 #1
0
 private void setProperties(string title, int workProgressPercent, DateTime startDate, DateTime startTime, DateTime endTime, string content, TaskCategory category)
 {
     this.WorkProgressPercent = workProgressPercent;
     this.StartDate = startDate;
     this.StartTime = startTime;
     this.EndTime = endTime;
     this.Content = content;
     this.Title = title;
     this.Category = category;
 }
예제 #2
0
 public virtual void Update(string title, DateTime startDate, DateTime startTime, DateTime endTime,
     string content, int workProgressPercent, TaskCategory category, AppType appType)
 {
     setProperties(title, workProgressPercent, startDate, startTime, endTime, content, category);
     SyncByUpdate(appType);
 }
예제 #3
0
 public Task(string title, DateTime startDate, DateTime startTime, DateTime endTime, string content,
     int workProgressPercent, TaskCategory category, AppType appType, Guid syncId)
     : base(syncId, appType)
 {
     setProperties(title, workProgressPercent, startDate, startTime, endTime, content, category);
 }
 public void Delete(TaskCategory taskCategory)
 {
     ctx.TaskCategories.Remove(taskCategory);
     ctx.SaveChanges();
 }
 public void Update(TaskCategory taskCategory)
 {
     ctx.SaveChanges();
 }
 public void Create(TaskCategory taskCategory)
 {
     ctx.TaskCategories.Add(taskCategory);
     ctx.SaveChanges();
 }