From bbc48949217b412bf6cd1875d65b4470c521127b Mon Sep 17 00:00:00 2001 From: jafreli Date: Thu, 17 Apr 2025 17:40:16 +0200 Subject: [PATCH] init --- SQL.sql | 11 ++++++ SQLMan/App.xaml | 9 +++++ SQLMan/App.xaml.cs | 14 ++++++++ SQLMan/AssemblyInfo.cs | 10 ++++++ SQLMan/MainWindow.xaml | 35 +++++++++++++++++++ SQLMan/MainWindow.xaml.cs | 67 +++++++++++++++++++++++++++++++++++ SQLMan/SQLMan.csproj | 15 ++++++++ Ubung.sln | 31 +++++++++++++++++ Ubung/Auto.cs | 15 ++++++++ Ubung/GenTec.cs | 26 ++++++++++++++ Ubung/GenTecList.cs | 21 +++++++++++ Ubung/Kombi.cs | 8 +++++ Ubung/Limousine.cs | 8 +++++ Ubung/Program.cs | 73 +++++++++++++++++++++++++++++++++++++++ Ubung/Ubung.csproj | 10 ++++++ Ubung/Van.cs | 17 +++++++++ 16 files changed, 370 insertions(+) create mode 100644 SQL.sql create mode 100644 SQLMan/App.xaml create mode 100644 SQLMan/App.xaml.cs create mode 100644 SQLMan/AssemblyInfo.cs create mode 100644 SQLMan/MainWindow.xaml create mode 100644 SQLMan/MainWindow.xaml.cs create mode 100644 SQLMan/SQLMan.csproj create mode 100644 Ubung.sln create mode 100644 Ubung/Auto.cs create mode 100644 Ubung/GenTec.cs create mode 100644 Ubung/GenTecList.cs create mode 100644 Ubung/Kombi.cs create mode 100644 Ubung/Limousine.cs create mode 100644 Ubung/Program.cs create mode 100644 Ubung/Ubung.csproj create mode 100644 Ubung/Van.cs diff --git a/SQL.sql b/SQL.sql new file mode 100644 index 0000000..f5afb10 --- /dev/null +++ b/SQL.sql @@ -0,0 +1,11 @@ +CREATE DATABASE IF NOT EXISTS FahrzeugDB; +GRANT ALL PRIVILEGES ON FahrzeugDB.* TO 'admin'@'%'; +FLUSH PRIVILEGES; +USE FahrzeugDB; +DROP TABLE IF EXISTS fahrzeuge; +CREATE TABLE fahrzeuge ( +id INT NOT NULL AUTO_INCREMENT, +fahrzeug_name VARCHAR(100) NOT NULL, +fahrzeug_typ VARCHAR(100) NOT NULL, +PRIMARY KEY ( id ) +); \ No newline at end of file diff --git a/SQLMan/App.xaml b/SQLMan/App.xaml new file mode 100644 index 0000000..8d85095 --- /dev/null +++ b/SQLMan/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/SQLMan/App.xaml.cs b/SQLMan/App.xaml.cs new file mode 100644 index 0000000..41a352e --- /dev/null +++ b/SQLMan/App.xaml.cs @@ -0,0 +1,14 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace SQLMan +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } + +} diff --git a/SQLMan/AssemblyInfo.cs b/SQLMan/AssemblyInfo.cs new file mode 100644 index 0000000..b0ec827 --- /dev/null +++ b/SQLMan/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/SQLMan/MainWindow.xaml b/SQLMan/MainWindow.xaml new file mode 100644 index 0000000..9445cb8 --- /dev/null +++ b/SQLMan/MainWindow.xaml @@ -0,0 +1,35 @@ + + + + + + + + + +