diff --git a/.vs/prog2-ss2020-wienkop/DesignTimeBuild/.dtbcache.v2 b/.vs/prog2-ss2020-wienkop/DesignTimeBuild/.dtbcache.v2 index 900a19fea236e2dfc217b5fa5c02fb44ff3f685f..92baa5e3d75255cc045ec80e84c9cc0344836d69 100644 Binary files a/.vs/prog2-ss2020-wienkop/DesignTimeBuild/.dtbcache.v2 and b/.vs/prog2-ss2020-wienkop/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/prog2-ss2020-wienkop/v16/.suo b/.vs/prog2-ss2020-wienkop/v16/.suo index 8940d60fe5925cda2dcc1a756965f1947a84a088..30fa204e1ee64c442cdbb7ba941f78fdbae015e0 100644 Binary files a/.vs/prog2-ss2020-wienkop/v16/.suo and b/.vs/prog2-ss2020-wienkop/v16/.suo differ diff --git a/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache b/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache index 98a1e6a32cef97cee689b7c42e40bd7555a13c6f..308f84f1bd32b1f7e1467356eb1ac40d7da08d5e 100644 Binary files a/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache and b/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache differ diff --git a/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache b/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache index 76bf24034ca333bd840757e825bd933d05e71b33..b1a2ab00e21075ae3f51a0172d319459c031d264 100644 Binary files a/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache and b/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache differ diff --git a/01OperatorOverloading/obj/Debug/netcoreapp3.1/01OperatorOverloading.csprojAssemblyReference.cache b/01OperatorOverloading/obj/Debug/netcoreapp3.1/01OperatorOverloading.csprojAssemblyReference.cache index 9bb701fecadc48763763df796398b7861ff2f7ec..9dfc37ed889ff4d2deed3ec1295b3086aa3c45af 100644 Binary files a/01OperatorOverloading/obj/Debug/netcoreapp3.1/01OperatorOverloading.csprojAssemblyReference.cache and b/01OperatorOverloading/obj/Debug/netcoreapp3.1/01OperatorOverloading.csprojAssemblyReference.cache differ diff --git a/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache b/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache index 4824caf0c92344f68eac696e04da28b425072d2c..ed51084113c37d43a99e791dd0a169f2b0c6b55a 100644 Binary files a/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache and b/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache differ diff --git a/02 UebgDi Klassse TimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgDi Klassse TimeOpOverloading.csprojAssemblyReference.cache b/02 UebgDi Klassse TimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgDi Klassse TimeOpOverloading.csprojAssemblyReference.cache index e23245258eaf6b6145a13830bacb66ca8fd7c885..75c16613d637ba1aee3feac158410536d13849e8 100644 Binary files a/02 UebgDi Klassse TimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgDi Klassse TimeOpOverloading.csprojAssemblyReference.cache and b/02 UebgDi Klassse TimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgDi Klassse TimeOpOverloading.csprojAssemblyReference.cache differ diff --git a/02VerketteteListe/obj/Debug/netcoreapp3.1/02VerketteteListe-1Intro.csprojAssemblyReference.cache b/02VerketteteListe/obj/Debug/netcoreapp3.1/02VerketteteListe-1Intro.csprojAssemblyReference.cache index e23245258eaf6b6145a13830bacb66ca8fd7c885..75c16613d637ba1aee3feac158410536d13849e8 100644 Binary files a/02VerketteteListe/obj/Debug/netcoreapp3.1/02VerketteteListe-1Intro.csprojAssemblyReference.cache and b/02VerketteteListe/obj/Debug/netcoreapp3.1/02VerketteteListe-1Intro.csprojAssemblyReference.cache differ diff --git a/05 UebgMo Warenwirtschaft/05 UebgMo Warenwirtschaft.csproj b/05 UebgMo Warenwirtschaft/05 UebgMo Warenwirtschaft.csproj new file mode 100644 index 0000000000000000000000000000000000000000..8d649d8948340098958a674a9210ecadb87eff14 --- /dev/null +++ b/05 UebgMo Warenwirtschaft/05 UebgMo Warenwirtschaft.csproj @@ -0,0 +1,9 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>netcoreapp3.1</TargetFramework> + <RootNamespace>_05_UebgMo_Warenwirtschaft</RootNamespace> + </PropertyGroup> + +</Project> diff --git a/05 UebgMo Warenwirtschaft/Program.cs b/05 UebgMo Warenwirtschaft/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..d305e1e7ea110aad9956f56277dbf76d39e8b2c1 --- /dev/null +++ b/05 UebgMo Warenwirtschaft/Program.cs @@ -0,0 +1,25 @@ +using System; + +namespace _05_UebgMo_Warenwirtschaft +{ + // Programmieren Sie ein rudimentäres System zur Verwaltung beliebiger Produkte + // Jedes Produkt soll die folgenden Eigenschaften besitzen, int stueckzahl, double preis, string name + // Es soll eigene (abstract oder nicht-abstract) Klassen für einzelne Produkte mit individuellen Datenfeldern geben: + // - Metallwaren mit den Unterklassen Schrauben und Nägel + // - Milchprodukte mit den Unterklassen Joghurt und Butter + // - Gartenprodukte mit den Unterklassen Pflanzen und Container; Schreiben Sie für die Pflanze eine besondere + // Methode, die nur Pflanzen haben. + // Erstellen Sie diese Klassen/Unterklassen mit geeigneten Konstruktoren, Basisklassenaufrufen, usw. + // Entscheiden Sie, wie Sie vererben wollen (virtual/abstract) + // Geben Sie für jede Klasse - wo sinnvoll - eine Überschreibung der ToString()-Methode an + // Legen Sie in Main() ein Feld mit einem Objekt je Klasse an, geben Sie alle Elemente in einer Schleife aus + // und schreiben Sie eine Methode, die z.B. nach der Pflanze über den Namen sucht und dieses Objekt zurückliefert + // Rufen Sie dann für die Pflanze die besondere Methode auf. + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + } + } +} diff --git a/05 UebgMo Warenwirtschaft/obj/05 UebgMo Warenwirtschaft.csproj.nuget.dgspec.json b/05 UebgMo Warenwirtschaft/obj/05 UebgMo Warenwirtschaft.csproj.nuget.dgspec.json new file mode 100644 index 0000000000000000000000000000000000000000..3a7d9be51771a92c274f8ea8975d905bd6371df4 --- /dev/null +++ b/05 UebgMo Warenwirtschaft/obj/05 UebgMo Warenwirtschaft.csproj.nuget.dgspec.json @@ -0,0 +1,60 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgMo Warenwirtschaft\\05 UebgMo Warenwirtschaft.csproj": {} + }, + "projects": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgMo Warenwirtschaft\\05 UebgMo Warenwirtschaft.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgMo Warenwirtschaft\\05 UebgMo Warenwirtschaft.csproj", + "projectName": "05 UebgMo Warenwirtschaft", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgMo Warenwirtschaft\\05 UebgMo Warenwirtschaft.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgMo Warenwirtschaft\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\wienkop\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/05 UebgMo Warenwirtschaft/obj/05 UebgMo Warenwirtschaft.csproj.nuget.g.props b/05 UebgMo Warenwirtschaft/obj/05 UebgMo Warenwirtschaft.csproj.nuget.g.props new file mode 100644 index 0000000000000000000000000000000000000000..dcb699c0e9a92aa0db59dc7c324b470d0dce8c74 --- /dev/null +++ b/05 UebgMo Warenwirtschaft/obj/05 UebgMo Warenwirtschaft.csproj.nuget.g.props @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> + <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> + <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> + <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> + <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\wienkop\.nuget\packages\</NuGetPackageFolders> + <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> + <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.5.0</NuGetToolVersion> + </PropertyGroup> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/05 UebgMo Warenwirtschaft/obj/05 UebgMo Warenwirtschaft.csproj.nuget.g.targets b/05 UebgMo Warenwirtschaft/obj/05 UebgMo Warenwirtschaft.csproj.nuget.g.targets new file mode 100644 index 0000000000000000000000000000000000000000..53cfaa19b16f3769b2bfc33db3b5c0053c16fdba --- /dev/null +++ b/05 UebgMo Warenwirtschaft/obj/05 UebgMo Warenwirtschaft.csproj.nuget.g.targets @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/05 UebgMo Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgMo Warenwirtschaft.AssemblyInfo.cs b/05 UebgMo Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgMo Warenwirtschaft.AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..6f5f5ce69361c4c212bf37ff2f5cf5d0e7815177 --- /dev/null +++ b/05 UebgMo Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgMo Warenwirtschaft.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// </auto-generated> +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("05 UebgMo Warenwirtschaft")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("05 UebgMo Warenwirtschaft")] +[assembly: System.Reflection.AssemblyTitleAttribute("05 UebgMo Warenwirtschaft")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/05 UebgMo Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgMo Warenwirtschaft.AssemblyInfoInputs.cache b/05 UebgMo Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgMo Warenwirtschaft.AssemblyInfoInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..e6a397b2ab8a8c39ae4be3361f48c20e224951bf --- /dev/null +++ b/05 UebgMo Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgMo Warenwirtschaft.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +7ec9793364b4bda561f7d2d47e12788d0ab9aea1 diff --git a/05 UebgMo Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgMo Warenwirtschaft.assets.cache b/05 UebgMo Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgMo Warenwirtschaft.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..81bde6865e67b6243b52e88803ac6761d638a1e7 Binary files /dev/null and b/05 UebgMo Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgMo Warenwirtschaft.assets.cache differ diff --git a/05 UebgMo Warenwirtschaft/obj/project.assets.json b/05 UebgMo Warenwirtschaft/obj/project.assets.json new file mode 100644 index 0000000000000000000000000000000000000000..aadb47b3da98e74be8a4714a15eb790a57713cb9 --- /dev/null +++ b/05 UebgMo Warenwirtschaft/obj/project.assets.json @@ -0,0 +1,65 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v3.1": [] + }, + "packageFolders": { + "C:\\Users\\wienkop\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgMo Warenwirtschaft\\05 UebgMo Warenwirtschaft.csproj", + "projectName": "05 UebgMo Warenwirtschaft", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgMo Warenwirtschaft\\05 UebgMo Warenwirtschaft.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgMo Warenwirtschaft\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\wienkop\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/05 UebgMo Warenwirtschaft/obj/project.nuget.cache b/05 UebgMo Warenwirtschaft/obj/project.nuget.cache new file mode 100644 index 0000000000000000000000000000000000000000..6926955e3602e0da5773b12ddcbc145a6f87a3ee --- /dev/null +++ b/05 UebgMo Warenwirtschaft/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "Py4/VNXugw3kUxTKo2G8ZdrtEQsdVvYiLI1++eSP4xgaCaULoy4lCKLJddrABTcU801PjCzQL65VTSN+p4iGfw==", + "success": true, + "projectFilePath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgMo Warenwirtschaft\\05 UebgMo Warenwirtschaft.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/05HTMLEngine/App.config b/05HTMLEngine/App.config new file mode 100644 index 0000000000000000000000000000000000000000..88fa4027bda397de6bf19f0940e5dd6026c877f9 --- /dev/null +++ b/05HTMLEngine/App.config @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <startup> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> + </startup> +</configuration> \ No newline at end of file diff --git a/05HTMLEngine/HTMLElements.cs b/05HTMLEngine/HTMLElements.cs new file mode 100644 index 0000000000000000000000000000000000000000..e554e7baa9322900493e96afac1efce4a47f02a2 --- /dev/null +++ b/05HTMLEngine/HTMLElements.cs @@ -0,0 +1,4 @@ +namespace HTML +{ + // TODO: Define classes for HTML tag elements (using interfaces "ITagged" and eventually "INested") here... +} \ No newline at end of file diff --git a/05HTMLEngine/HTMLEngine.cs b/05HTMLEngine/HTMLEngine.cs new file mode 100644 index 0000000000000000000000000000000000000000..9ad58767159712e8a6e2f74d1d5053d216ac6f5d --- /dev/null +++ b/05HTMLEngine/HTMLEngine.cs @@ -0,0 +1,16 @@ +namespace HTML +{ + // HTML engine for generation of a HTML string from an array of HTML tag elements: + + public interface ITagged { string TagId { get; } } // Used to define HTML tag element + + public interface INested { object[] Elements { get; } } // Used to "mark" a HTML tag element as nested + + public static class Engine + { + public static string Generate(params object[] elements) + { + // TODO: Your code for (recursive) generation of a HTML string from array "elements" here... + } + } +} \ No newline at end of file diff --git a/05HTMLEngine/HTMLEngine.csproj b/05HTMLEngine/HTMLEngine.csproj new file mode 100644 index 0000000000000000000000000000000000000000..7f0ba6b972a3414a43d854a4cd8e4a17db61b553 --- /dev/null +++ b/05HTMLEngine/HTMLEngine.csproj @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProjectGuid>{BCED82D0-F95F-4D82-9019-2C63D6B3CC8A}</ProjectGuid> + <OutputType>Exe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>HTMLEngine</RootNamespace> + <AssemblyName>HTMLEngine</AssemblyName> + <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Core" /> + <Reference Include="System.Xml.Linq" /> + <Reference Include="System.Data.DataSetExtensions" /> + <Reference Include="Microsoft.CSharp" /> + <Reference Include="System.Data" /> + <Reference Include="System.Net.Http" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="HTMLElements.cs" /> + <Compile Include="HTMLEngine.cs" /> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <None Include="App.config" /> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file diff --git a/05HTMLEngine/Program.cs b/05HTMLEngine/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..0a1803cba93c8ec361929036dcd908f74d3a6e4d --- /dev/null +++ b/05HTMLEngine/Program.cs @@ -0,0 +1,70 @@ +using HTML; + +class Program +{ + // Test program for HTML generation: + + static void Main() + { + // Generate HTML document and store result in string: + + string html = Engine.Generate + ( + new DocumentType(), + + new Html + ( + new Head + ( + new Title("Generated HTML Example") + ), + + new Body + ( + new Heading("Welcome to the Technical University of Nuremberg"), + + new Paragraph + ( + "We have a ", new Italic("distinct profile"), " and strive to maintain our ", new Italic("leading position"), " among comparable universities." + ), + + new Heading("Study for your future"), + + new Paragraph + ( + 12, " departments provide more than ", 40, " degree programs in ", new Bold("engineering, business, design and social sciences."), + new LineBreak(), + "If you have questions, please contact the ", new Italic("Student Counseling Service"), " or the ", new Italic("Student Office.") + ) + ) + ) + ); + + // Write resulting HTML string: + + System.Console.WriteLine("GENERATED HTML DOCUMENT:"); + + System.Console.WriteLine(html); + + System.Console.ReadKey(true); + + /* + // Write reformatted HTML string: + + System.Console.WriteLine("\nREFORMATTED HTML DOCUMENT:"); + + System.Console.WriteLine("\n<" + new DocumentType().TagId + ">\n" + System.Xml.Linq.XElement.Parse(html.Replace("\n", ""))); + + System.Console.ReadKey(true); + */ + + // Show (original) HTML string in default browser: + + System.Console.WriteLine("\nSTARTING BROWSER WITH GENERATED DOCUMENT..."); + + System.IO.File.WriteAllText("Example.html", html); + + System.Diagnostics.Process.Start("Example.html"); + } +} + diff --git a/05HTMLEngine/Properties/AssemblyInfo.cs b/05HTMLEngine/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..2edcd507fd4de6caaed25f620f86667c1d407114 --- /dev/null +++ b/05HTMLEngine/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("HTMLEngine")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("HTMLEngine")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("bced82d0-f95f-4d82-9019-2c63d6b3cc8a")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/05HTMLEngine/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/05HTMLEngine/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000000000000000000000000000000000000..00180eab8af18668c6b764f6df0b77ecbd48121f Binary files /dev/null and b/05HTMLEngine/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/05HTMLEngine/obj/Debug/HTMLEngine.csprojAssemblyReference.cache b/05HTMLEngine/obj/Debug/HTMLEngine.csprojAssemblyReference.cache new file mode 100644 index 0000000000000000000000000000000000000000..2ccb88b97552ae15afdcd5effc3c7f157699cb6f Binary files /dev/null and b/05HTMLEngine/obj/Debug/HTMLEngine.csprojAssemblyReference.cache differ diff --git a/prog2-ss2020-wienkop.sln b/prog2-ss2020-wienkop.sln index 521c019c7df98fed36b5b3ee756d064b968e2836..8232d1d10a14dacd1f367c1d6fd674d92c31e2d7 100644 --- a/prog2-ss2020-wienkop.sln +++ b/prog2-ss2020-wienkop.sln @@ -46,7 +46,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "04 UebgMo ZyklischeListe", EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "04 UebgDi Vererbung", "04 UebgDi Vererbung\04 UebgDi Vererbung.csproj", "{7E563224-8612-4E65-BDD5-875D4DB146EC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "04VererbungGrafischeObjekte", "04VererbungGrafischeObjekte\04VererbungGrafischeObjekte.csproj", "{7E54DCD9-0FAE-42BD-AC56-ED65E6AA60EE}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "04VererbungGrafischeObjekte", "04VererbungGrafischeObjekte\04VererbungGrafischeObjekte.csproj", "{7E54DCD9-0FAE-42BD-AC56-ED65E6AA60EE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HTMLEngine", "05HTMLEngine\HTMLEngine.csproj", "{BCED82D0-F95F-4D82-9019-2C63D6B3CC8A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "05 UebgMo Warenwirtschaft", "05 UebgMo Warenwirtschaft\05 UebgMo Warenwirtschaft.csproj", "{2CFDBE8A-4925-4E0C-A686-7554394003A6}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -134,6 +138,14 @@ Global {7E54DCD9-0FAE-42BD-AC56-ED65E6AA60EE}.Debug|Any CPU.Build.0 = Debug|Any CPU {7E54DCD9-0FAE-42BD-AC56-ED65E6AA60EE}.Release|Any CPU.ActiveCfg = Release|Any CPU {7E54DCD9-0FAE-42BD-AC56-ED65E6AA60EE}.Release|Any CPU.Build.0 = Release|Any CPU + {BCED82D0-F95F-4D82-9019-2C63D6B3CC8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BCED82D0-F95F-4D82-9019-2C63D6B3CC8A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BCED82D0-F95F-4D82-9019-2C63D6B3CC8A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BCED82D0-F95F-4D82-9019-2C63D6B3CC8A}.Release|Any CPU.Build.0 = Release|Any CPU + {2CFDBE8A-4925-4E0C-A686-7554394003A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2CFDBE8A-4925-4E0C-A686-7554394003A6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2CFDBE8A-4925-4E0C-A686-7554394003A6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2CFDBE8A-4925-4E0C-A686-7554394003A6}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE