Exemplo n.º 1
0
 public static void CreateNote(OrganizerCore core, string name, string text, byte color, byte priority, string filePath, string comment)
 {
     Note note = new Note(name, text, (Color)color, (Priority)priority, filePath, comment);
     core.AddObject(note);
     Utilities.PrintColorMessage(String.Format("The Note \"{0}\" is created", note.Name), Color.Blue);
     Utilities.GoToMainMenu(core);
 }
Exemplo n.º 2
0
        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();
        }