diff --git a/Emne 3/EssentialCsharp/EssentialCsharp/Demo1/TextObject.cs b/Emne 3/EssentialCsharp/EssentialCsharp/Demo1/TextObject.cs deleted file mode 100644 index 8de3907..0000000 --- a/Emne 3/EssentialCsharp/EssentialCsharp/Demo1/TextObject.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace EssentialCsharp.Demo1; - -public class TextObject -{ - public string Text { get; set; } - public int FontSize { get; set; } - public int FontColor { get; set; } -} \ No newline at end of file diff --git a/Emne 3/EssentialCsharp/EssentialCsharp/Program.cs b/Emne 3/EssentialCsharp/EssentialCsharp/Program.cs index ee7f898..220487d 100644 --- a/Emne 3/EssentialCsharp/EssentialCsharp/Program.cs +++ b/Emne 3/EssentialCsharp/EssentialCsharp/Program.cs @@ -1,33 +1,13 @@ namespace EssentialCsharp { - public class Tekst + public class Program { - public static void Main() + public static void Main(string[] args) { - var tekst = new TextObject[] - { - new TextObject - { - Text = "Geir", - FontSize = 14, - FontColor = 00001, - Color = ConsoleColor.Green, - }, - new TextObject - { - Text = "Geir2", - FontSize = 12, - FontColor = 010001, - Color = ConsoleColor.Gray, - } - }; - foreach (var tekst1 in tekst) - { - tekst1.Print(); - Thread.Sleep(100); - } - + string name; + Console.WriteLine("Enter Your name: "); + name = Console.ReadLine(); + Console.WriteLine($"Hello {name}!"); } } -} - +} \ No newline at end of file diff --git a/Emne 3/EssentialCsharp/EssentialCsharp/TextObject.cs b/Emne 3/EssentialCsharp/EssentialCsharp/TextObject.cs deleted file mode 100644 index 91f0d0e..0000000 --- a/Emne 3/EssentialCsharp/EssentialCsharp/TextObject.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace EssentialCsharp; - -public class TextObject -{ - public string Text { get; set; } - public int FontSize { get; set; } - public int FontColor { get; set; } - public ConsoleColor Color { get; set; } - - public void Print() - { - Console.ForegroundColor = Color; - Console.WriteLine(Text); - Console.WriteLine(FontSize); - Console.WriteLine(FontColor); - - - } -} \ No newline at end of file diff --git a/Emne 3/Pokemon/Program.cs b/Emne 3/Pokemon/Program.cs index d94f691..62c0002 100644 --- a/Emne 3/Pokemon/Program.cs +++ b/Emne 3/Pokemon/Program.cs @@ -1,5 +1,12 @@ -namespace Pokemon +using System; +using Pokedex; +namespace Pokemon { + // 1/3 Planning + // 1/6 Coding + // 1/4 component test and early system test + // 1/4 system test, all components in hand + // - "The Mythical Man Month" by Frederick P. Brooks class Program { static void Main(string[] args) diff --git a/Emne 3/Pokemon/pokemon.cs b/Emne 3/Pokemon/pokemon.cs index 7e9a4d7..d6de17a 100644 --- a/Emne 3/Pokemon/pokemon.cs +++ b/Emne 3/Pokemon/pokemon.cs @@ -1,4 +1,4 @@ -namespace Pokemon; +namespace Pokedex; public class Pikachu {