public 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(); postit1.BackgroundColor = "orange"; postit1.Text = "Idea 1"; postit1.TextColor = "blue"; PostIt postit2 = new PostIt(); postit2.BackgroundColor = "pink"; postit2.Text = "Awesome"; postit2.TextColor = "black"; PostIt postit3 = new PostIt(); postit3.BackgroundColor = "yellow"; postit3.Text = "Superb!"; postit3.TextColor = "green"; }
public static void Main(string[] args) { PostIt postItFirstOne = new PostIt("orange", "blue", "Idea1"); PostIt postItSecondOne = new PostIt("pink", "black", "Awesome"); PostIt postItThirdOne = new PostIt("yellow", "green", "Superb!"); Console.WriteLine(postItSecondOne.textColor); }
static void Main(string[] args) { PostIt postItFirst = new PostIt("orange", "Idea 1", "blue"); PostIt postItSecond = new PostIt("pink", "Awesome", "black"); PostIt postItThird = new PostIt("yellow", "Superb", "green"); Console.WriteLine("Here is an " + postItFirst.backgroundcolor + " postIt with " + postItFirst.text + " text on it which is " + postItFirst.textColor + "."); Console.ReadLine(); }
static void Main(string[] args) { PostIt postitOne = new PostIt("Orange", "Blue", "Idea 1"); PostIt postitTwo = new PostIt("Pink", "Black", "Awesome"); PostIt postitThree = new PostIt("Yellow", "Green", "Superb!"); Console.WriteLine(postitOne.BackgroundColor + " " + postitOne.TextColor + " " + postitOne.Text); Console.ReadLine(); }
static void Main(string[] args) { PostIt Idea1 = new PostIt("Orange", "Idea1", "Blue"); PostIt Awesome = new PostIt("Pink", "Awesome", "Black"); PostIt Superb = new PostIt("Yellow", "Superb", "Green"); Console.WriteLine(Idea1.TextColor); Console.ReadKey(); }
static void Main(string[] args) { PostIt Idea1 = new PostIt("orange", "Idea 1", "blue"); PostIt Awesome = new PostIt("pink", "Awesome", "black"); PostIt Superb = new PostIt("yellow", "Superb", "green"); Superb.WriteColor(); Awesome.WriteText(); Console.ReadLine(); }
static void Main(string[] args) { PostIt postItOne = new PostIt("orange", "blue", "Idea 1"); PostIt postItTwo = new PostIt("pink", "black", "Awesome"); PostIt postItThree = new PostIt("yellow", "green", "Superb"); postItOne.WriteOutFields(); postItTwo.WriteOutFields(); postItThree.WriteOutFields(); Console.ReadLine(); }
static void Main(string[] args) { PostIt postItOne = new PostIt("Orange", "Idea 1", "Blue"); PostIt postItTwo = new PostIt("Pink", "Awsome", "Black"); PostIt postItThree = new PostIt("Green", "Superb!", "Green"); Console.WriteLine(postItOne.backgroundColor); Console.WriteLine(postItThree.textOnIt); Console.ReadLine(); }
static void Main(string[] args) { PostIt postIt1 = new PostIt("Orange", "Blue", "Idea 1"); PostIt postIt2 = new PostIt("Pink", "Black", "Awesome"); PostIt postIt3 = new PostIt("Yellow", "Green", "Superb"); Console.WriteLine("Background Color = {0} Text Color = {1} Text = {2}", postIt1.backgroundColor, postIt1.textColor, postIt1.text); Console.WriteLine("Background Color = {0} Text Color = {1} Text = {2}", postIt2.backgroundColor, postIt2.textColor, postIt2.text); Console.WriteLine("Background Color = {0} Text Color = {1} Text = {2}", postIt3.backgroundColor, postIt3.textColor, postIt3.text); Console.ReadLine(); }
static void Main(string[] args) { var postIt = new PostIt(); }