Esempio n. 1
0
        static void Main(string[] args)
        {
            /*Create a PostIt a struct that has
             *  a BackgroundColor
             *  a Text on it
             *  a TextColor
             * Create a few example post-it objects:
             *  an orange with blue text: "Idea 1"
             *  a pink with black text: "Awesome"
             *  a yellow with green text: "Superb!"*/

            PostIt PostItOne   = new PostIt("Orange", "Idea1", "Blue");
            PostIt PostItTwo   = new PostIt("Pink", "Awesome", "Black");
            PostIt PostItThree = new PostIt("Yellow", "Superb", "Green");
        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     PostIt object1 = new PostIt("Orange", "Idea 1", "Blue");
     PostIt object2 = new PostIt("Pink", "Awesome", "Black");
     PostIt object3 = new PostIt("Yellow", "Superb!", "Green");
 }