示例#1
0
        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();
        }
示例#2
0
 public TaskHistory(String taskName, int taskId, DescriptionHistory description, ForwardHistory forward) : this(taskName, taskId)
 {
     descriptions.Add(description);
     forwards.Add(forward);
 }
示例#3
0
 public void editDescription(DescriptionHistory description)
 {
     descriptions.Add(description);
 }
示例#4
0
 public TaskHistory(String taskName, int taskId, DescriptionHistory description) : this(taskName, taskId)
 {
     descriptions.Add(description);
 }