コード例 #1
0
ファイル: Demo.cs プロジェクト: smihaylovit/Telerik_Academy
        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();
        }
コード例 #2
0
 public static void CreateBusiness(OrganizerCore core, string name, string mobileNumber, string organization, string middleName,
     string lastName, string birthDate, string occupation, string address, string email)
 {
     Business business = new Business(name, mobileNumber, organization, middleName, lastName, birthDate, occupation, address, email);
     core.AddObject(business);
     Utilities.PrintColorMessage(String.Format("The Business contact \"{0}\" is created", business.Name), Color.Blue);
     Utilities.GoToMainMenu(core);
 }