public static void CreateTaskWithReminder(OrganizerCore core, string name, string message, string category, byte color, byte priority, string location, string comment) { OrganizerClassLibrary.Task task = new OrganizerClassLibrary.Task(name, message, category, (Color)color, (Priority)priority, location, comment); core.AddObject(task); Utilities.PrintColorMessage(String.Format("The Task: \"{0}\" is created", task.Name), Color.Blue); Utilities.GoToMainMenu(core); }
static void Main() { System.Threading.Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; OrganizerCore core = OrganizerCore.GetOrganizerCoreInstance(); //OrganizerCore.Initialize(core); //UserInterface.MainMenu(core); //core.PrintTotalObjectsCreated(); Friend tzanko = new Friend("Tzanko", "*****@*****.**", nickname: "Jujo"); Console.WriteLine(tzanko); FamilyMember mother = new FamilyMember("Tzvetanka", "0888123123", FamilyTreeMember.Mother); Console.WriteLine(mother); Business theBoss = new Business("Nikolay", "0888456456", "Telerik LTD"); Console.WriteLine(theBoss); Note note = new Note("Important Note", "Hello World!!! How's going ?", Color.Red, Priority.High, "Not so important"); Console.WriteLine(note); Project project = new Project("The Green Project", Color.Green, Priority.Low, "Best project ever"); Console.WriteLine(project); Category category = new Category("Tourism", "The Green Project", color: Color.Yellow, comment: "Summer vacation"); Console.WriteLine(category); OrganizerClassLibrary.Task idea = new Task("Idea for project", color: Color.Cyan); Console.WriteLine(idea); Utilities.ResetConsoleColor(); }