private void button1_Click(object sender, EventArgs e) { TaskHistory task = new TaskHistory("Test", 0); task.Forward(new ForwardHistory(0)); task.Forward(new ForwardHistory(1)); AttachmentHistory attachment = new AttachmentHistory("C:\\Users\\shaks"); task.addAttachment(attachment); attachment = new AttachmentHistory("C:\\Users\\shakshak"); task.addAttachment(attachment); DescriptionHistory description = new DescriptionHistory("Bla bla bla"); task.editDescription(description); description = new DescriptionHistory("Bla bla blaaaaaaaaaaaaaaaaaaaaaa"); task.editDescription(description); task.addComment(new CommentHistory("comment")); task.addComment(new CommentHistory("commmmmmmmmmment")); TaskHistory.readTasks(); task.taskId = TaskHistory.tasks.Count; TaskHistory.tasks.Add(task); TaskHistory.writeTasks(); }
public TaskHistory(String taskName, int taskId, DescriptionHistory description, ForwardHistory forward) : this(taskName, taskId) { descriptions.Add(description); forwards.Add(forward); }
public void editDescription(DescriptionHistory description) { descriptions.Add(description); }
public TaskHistory(String taskName, int taskId, DescriptionHistory description) : this(taskName, taskId) { descriptions.Add(description); }