Example #1
0
        static void Main(string[] args)
        {
            VirtualProxyDataset virtualDataset = new VirtualProxyDataset("csv.txt");
            User user = User.GenerateUser("Ana");
            ProtectionProxyDataset protectionDataset = new ProtectionProxyDataset(user);
            DataConsolePrinter     printer           = new DataConsolePrinter();

            printer.PrintDataConsole(virtualDataset);
            printer.PrintDataConsole(protectionDataset);

            CoralTheme   coral = new CoralTheme();
            ReminderNote note  = new ReminderNote("It's time for vacation!", coral);

            note.Show();

            GroupNote groupNoteOne = new GroupNote("Winter is coming.", coral);

            for (int i = 0; i < 5; i++)
            {
                string newMember = Console.ReadLine();
                groupNoteOne.AddMember(newMember);
            }
            groupNoteOne.Show();

            LightTheme light        = new LightTheme();
            GroupNote  groupNoteTwo = new GroupNote("Winter is here.", light);

            for (int i = 0; i < 5; i++)
            {
                string newMember = Console.ReadLine();
                groupNoteOne.AddMember(newMember);
            }
            groupNoteTwo.Show();

            Notebook notebook = new Notebook(coral);

            notebook.AddNote(groupNoteOne);
            notebook.AddNote(groupNoteTwo);
            notebook.ChangeTheme(coral);
            notebook.Display();
        }
Example #2
0
        static void Main(string[] args)
        {
            /*Dataset data = new Dataset("CSV.txt");
             * DataConsolePrinter printer = new DataConsolePrinter(data);
             * printer.PrintData(data);
             *
             * LoggingProxyDataset loggingProxyDataset = new LoggingProxyDataset("CSV.txt");
             * loggingProxyDataset.GetData();*/

            DarkTheme    darkTheme = new DarkTheme();
            ReminderNote note      = new ReminderNote("message", darkTheme);
            //note.Show();

            GroupNote groupNote = new GroupNote("message", darkTheme);

            groupNote.AddName("A");
            //groupNote.Show();

            Notebook notebook = new Notebook(darkTheme);

            notebook.AddNote(note);
            notebook.AddNote(groupNote);
            notebook.Display();
        }