Example #1
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();
        }
 public static void CreateFamilyMember(OrganizerCore core, string name, string mobileNumber, byte familyMemberType, byte bloodGroup,
     string middleName, string lastName, string birthDate, string egn, string occupation, string address, string email,
     string phoneNumber, string website)
 {
     FamilyMember familyMember = new FamilyMember(name, mobileNumber, (FamilyTreeMember)familyMemberType,
         (BloodGroupType)bloodGroup, middleName, lastName, birthDate,
         egn, occupation, address, email, phoneNumber, website);
     core.AddObject(familyMember);
     Utilities.PrintColorMessage(String.Format("The Family member contact \"{0}\" is created", familyMember.Name), Color.Blue);
     Utilities.GoToMainMenu(core);
 }