Commit 72c06777 authored by Stojcheska Teodora's avatar Stojcheska Teodora
Browse files

Upload New File

parent c94ca2ca
using System;
using System.Collections.Generic;
using static System.Console;
static class Program
{
static void Main()
{
Calendar calendar = new Calendar();
calendar.defaultWorkingHoursInterval = 12;
Task task = new Task("kdb", new DateTime(2021, 07, 08), 5, Type.NORMAL, false);
Task t = new Task("Test", new DateTime(2021, 07, 07), 3, Type.NORMAL, false);
// splitting tasks problem - try with task duration 4
Task t1 = new Task("Test1", new DateTime(2021, 06, 12), 5, Type.NORMAL, false);
Task t2 = new Task("Test2", new DateTime(2021, 08, 07), 2, Type.NORMAL, false);
Task t3 = new Task("Test3", new DateTime(2021, 07, 10), 6, Type.NORMAL, false);
// doesn't add task
// also try date 2021, 07, 07
Task t4 = new Task("Test4", new DateTime(2021, 07, 07), 2, Type.NORMAL, false);
Task t5 = new Task("Test5", new DateTime(2021, 07, 15), 7, Type.NORMAL, false);
Task t6 = new Task("Test6", new DateTime(2021, 06, 15), 10, Type.NORMAL, false);
calendar.addTask(task);
calendar.addTask(t);
calendar.addTask(t1);
calendar.addTask(t2);
calendar.addTask(t3);
// TODO: Check what happens when you add this task
calendar.print();
calendar.addTask(t4);
//calendar.addTask(t5);
WriteLine();
//calendar.addTask(t6);
calendar.print();
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment