static void Main(string[] args) { /// 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 orangeObject = new PostIt(); orangeObject.BackgroundColor = "Orange"; orangeObject.ForegroundColor = "Blue"; orangeObject.Text = "Idea 1"; PostIt pinkObject = new PostIt(); pinkObject.BackgroundColor = "Pink"; pinkObject.ForegroundColor = "Black"; pinkObject.Text = "Awsome"; PostIt yellowObject = new PostIt(); yellowObject.BackgroundColor = "Yellow"; yellowObject.ForegroundColor = "Green"; yellowObject.Text = "Superb!"; PostIt.SetGreenOnYellow(); Console.WriteLine(yellowObject.BackgroundColor + " " + yellowObject.ForegroundColor + " " + yellowObject.Text); }
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", "Idea 1", "blue"); PostIt postItTwo = new PostIt("pink", "Awesome", "black"); PostIt postItThree = new PostIt("yellow", "Superb!", "green"); }
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 first = new PostIt("orange", "Idea 1", "blue"); PostIt second = new PostIt("orange", "Idea 1", "blue"); PostIt third = new PostIt("orange", "Idea 1", "blue"); Console.WriteLine(first.BackgroundColor); }
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 postIt1 = new PostIt("orange", "Idea 1", "blue"); PostIt postIt2 = new PostIt("pink", "Awesome", "black"); PostIt postIt3 = new PostIt("yellow", "Superb!", "green"); Console.WriteLine(postIt1.BackgroundColor + ", " + postIt1.Text + ", " + postIt1.TextColor); Console.WriteLine(postIt2.BackgroundColor + ", " + postIt2.Text + ", " + postIt2.TextColor); Console.WriteLine(postIt3.BackgroundColor + ", " + postIt3.Text + ", " + postIt3.TextColor); Console.ReadLine(); }
static void Main(string[] args) { var PostIt1 = new PostIt(); PostIt1.TextColor = "blue"; PostIt1.BackgroundColor = "orange"; PostIt1.Text = "Idea 1"; var PostIt2 = new PostIt(); PostIt2.TextColor = "black"; PostIt2.BackgroundColor = "pink"; PostIt2.Text = "Awesome"; var PostIt3 = new PostIt(); PostIt3.TextColor = "green"; PostIt3.BackgroundColor = "Yellow"; PostIt3.Text = "Superb!"; }
static void Main(string[] args) { PostIt First = new PostIt("orange", "blue", "Idea 1"); PostIt Second = new PostIt("pink", "black", "Awesome"); PostIt Third = new PostIt("yellow", "green", "suberb"); }