Rename to Elwig

This commit is contained in:
2023-03-18 10:57:59 +01:00
parent c27b7b8846
commit c8ffe57ff1
45 changed files with 72 additions and 68 deletions

View File

@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32929.385
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WGneu", "WGneu\WGneu.csproj", "{00868460-16F6-4B48-AA9B-998F6263693B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elwig", "WGneu\Elwig.csproj", "{00868460-16F6-4B48-AA9B-998F6263693B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -1,7 +1,7 @@
<Application x:Class="WGneu.App"
<Application x:Class="Elwig.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WGneu"
xmlns:local="clr-namespace:Elwig"
StartupUri="Windows\MainWindow.xaml"
xmlns:ui="http://schemas.modernwpf.com/2019">
<Application.Resources>

View File

@ -7,9 +7,9 @@ using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.IO;
using WGneu.Helpers;
using Elwig.Helpers;
namespace WGneu {
namespace Elwig {
public partial class App : Application {
public static bool IsPrintingReady => Documents.Html.IsReady && Documents.Pdf.IsReady;

View File

@ -1,6 +1,6 @@
@using RazorLight
@inherits TemplatePage<WGneu.Documents.BusinessDocument>
@model WGneu.Documents.BusinessDocument
@inherits TemplatePage<Elwig.Documents.BusinessDocument>
@model Elwig.Documents.BusinessDocument
@{ Layout = "Document"; }
<div class="info-wrapper">

View File

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WGneu.Models;
using Elwig.Models;
namespace WGneu.Documents {
namespace Elwig.Documents {
public abstract class BusinessDocument : Document {
public BusinessDocument(string title, Member m) : base(title) {

View File

@ -1,6 +1,6 @@
@using RazorLight
@inherits TemplatePage<WGneu.Documents.BusinessLetter>
@model WGneu.Documents.BusinessLetter
@inherits TemplatePage<Elwig.Documents.BusinessLetter>
@model Elwig.Documents.BusinessLetter
@{ Layout = "BusinessDocument"; }
<p>Sehr geehrtes Mitglied,</p>

View File

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WGneu.Models;
using Elwig.Models;
namespace WGneu.Documents {
namespace Elwig.Documents {
public class BusinessLetter : BusinessDocument {
public BusinessLetter(string title, Member m) : base(title, m) {

View File

@ -5,9 +5,9 @@ using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Windows;
using WGneu.Helpers;
using Elwig.Helpers;
namespace WGneu.Documents {
namespace Elwig.Documents {
public abstract class Document : IDisposable {
private TempFile? PdfFile = null;

View File

@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WGneu.Documents {
namespace Elwig.Documents {
public static class Html {
private static RazorLightEngine? Engine = null;
public static bool IsReady => Engine != null;

View File

@ -12,10 +12,10 @@ using PdfSharp.Pdf.IO;
using PuppeteerSharp;
using PuppeteerSharp.Media;
using RazorLight;
using WGneu.Helpers;
using WGneu.Windows;
using Elwig.Helpers;
using Elwig.Windows;
namespace WGneu.Documents {
namespace Elwig.Documents {
public static class Pdf {
private static readonly string CHROMIUM = @"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe";

View File

@ -1,5 +1,5 @@
@using RazorLight
@inherits TemplatePage<WGneu.Documents.Document>
@inherits TemplatePage<Elwig.Documents.Document>
<style>
:root {

View File

@ -9,6 +9,10 @@
<ApplicationIcon>elwig.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<None Remove="Models\AT_Plz.cs~RF10c9cd6d.TMP" />
</ItemGroup>
<ItemGroup>
<Content Include="elwig.ico" />
</ItemGroup>

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using WGneu.Models;
using Elwig.Models;
namespace WGneu.Helpers {
namespace Elwig.Helpers {
public class AppDbContext : DbContext {
public DbSet<Country> Countries { get; set; }
public DbSet<Member> Members { get; set; }

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WGneu.Helpers {
namespace Elwig.Helpers {
// 1 °KMW =
// 1 °NM = kg/100L = 10g/L
// 1 °Oe =

View File

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace WGneu.Helpers {
namespace Elwig.Helpers {
public sealed class TempFile : IDisposable {
private int Usages = 0;
public string FilePath { get; private set; }

View File

@ -8,7 +8,7 @@ using System.Windows.Controls;
using System.Diagnostics;
using System.Windows.Controls.Primitives;
namespace WGneu.Helpers {
namespace Elwig.Helpers {
public static class Utils {
public static void SetInputChanged(Control input) {
var brush = Brushes.Orange;

View File

@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Windows.Controls;
using WGneu.Models;
using Elwig.Models;
namespace WGneu.Helpers {
namespace Elwig.Helpers {
static class Validator {
private static readonly Dictionary<string, string[][]> PHONE_NRS = new() {

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("AT_gem"), PrimaryKey("Gkz")]
public class AT_Gem {
[Column("gkz")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("AT_kg"), PrimaryKey("KgNr")]
public class AT_Kg {
[Column("kgnr")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("AT_ort"), PrimaryKey("Okz")]
public class AT_Ort {
[Column("okz")]

View File

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("AT_plz"), PrimaryKey("Plz")]
public class AT_Plz {
[Column("plz")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("AT_plz_dest"), PrimaryKey("Id"), Index("Plz", "Okz", IsUnique = true)]
public class AT_PlzDest {
[Column("plz")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("area_commitment"), PrimaryKey("VNr", "KgNr", "GstNr")]
public class AreaCommitment {
[Column("vnr")]

View File

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("branch"), PrimaryKey("ZwstId")]
public class Branch {
[Column("zwstid")]

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("contract"), PrimaryKey("VNr")]
public class Contract {
[Column("vnr")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("country"), PrimaryKey("Alpha2")]
public class Country {
[Column("alpha2")]

View File

@ -3,7 +3,7 @@ using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("member"), PrimaryKey("MgNr")]
public class Member {
[Column("mgnr")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("postal_dest"), PrimaryKey("CountryCode", "Id")]
public class PostalDest {
[Column("country")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("wb_kg"), PrimaryKey("KgNr")]
public class WbKg {
[Column("kgnr")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("wb_rd"), PrimaryKey("KgNr", "RdNr")]
public class WbRd {
[Column("kgnr")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("wine_attribute"), PrimaryKey("AttrId")]
public class WineAttr {
[Column("attrid")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("wine_cultivation"), PrimaryKey("CultId")]
public class WineCult {
[Column("cultid")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("wine_quality"), PrimaryKey("QualId")]
public class WineQual {
[Column("qualid")]

View File

@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
namespace Elwig.Models {
[Table("wine_variety"), PrimaryKey("SortId")]
public class WineVar {
[Column("sortid")]

View File

@ -1,9 +1,9 @@
<Window x:Class="WGneu.Windows.ContractListWindow"
<Window x:Class="Elwig.Windows.ContractListWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WGneu.Windows"
xmlns:local="clr-namespace:Elwig.Windows"
mc:Ignorable="d"
Title="Flächenbindungen" Height="450" Width="800">
<Grid>

View File

@ -3,10 +3,10 @@ using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using WGneu.Helpers;
using WGneu.Models;
using Elwig.Helpers;
using Elwig.Models;
namespace WGneu.Windows {
namespace Elwig.Windows {
public partial class ContractListWindow : Window {
private readonly AppDbContext Context = new();

View File

@ -1,9 +1,9 @@
<Window x:Class="WGneu.Windows.DeliveryReceptionWindow"
<Window x:Class="Elwig.Windows.DeliveryReceptionWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WGneu.Windows"
xmlns:local="clr-namespace:Elwig.Windows"
mc:Ignorable="d"
Title="Übernahme" Height="450" Width="800">
<Grid>

View File

@ -1,6 +1,6 @@
using System.Windows;
namespace WGneu.Windows {
namespace Elwig.Windows {
public partial class DeliveryReceptionWindow : Window {
public DeliveryReceptionWindow() {
InitializeComponent();

View File

@ -1,10 +1,10 @@
<Window x:Class="WGneu.Windows.DocumentViewerWindow"
<Window x:Class="Elwig.Windows.DocumentViewerWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
xmlns:local="clr-namespace:WGneu.Windows"
xmlns:local="clr-namespace:Elwig.Windows"
mc:Ignorable="d"
Closed="OnClosed"
Title="PDF Ansicht"

View File

@ -1,8 +1,8 @@
using System;
using System.Windows;
using WGneu.Helpers;
using Elwig.Helpers;
namespace WGneu.Windows {
namespace Elwig.Windows {
public partial class DocumentViewerWindow : Window {
private TempFile? PdfFile = null;

View File

@ -1,11 +1,11 @@
<Window x:Class="WGneu.Windows.MainWindow"
<Window x:Class="Elwig.Windows.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WGneu.Windows"
xmlns:local="clr-namespace:Elwig.Windows"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800" ResizeMode="CanResize" SizeToContent="Manual"
Title="Elwig" Height="450" Width="800" ResizeMode="CanResize" SizeToContent="Manual"
Loaded="Window_Loaded">
<Grid>
<Button x:Name="Button2" Content="Mitglieder" Margin="472,182,178,0" VerticalAlignment="Top" Click="Button2_Click"/>

View File

@ -7,10 +7,10 @@ using System.Runtime.Intrinsics.X86;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using WGneu.Documents;
using WGneu.Helpers;
using Elwig.Documents;
using Elwig.Helpers;
namespace WGneu.Windows {
namespace Elwig.Windows {
public partial class MainWindow : Window {
private readonly AppDbContext Context = new();

View File

@ -1,10 +1,10 @@
<Window x:Class="WGneu.Windows.MemberListWindow"
<Window x:Class="Elwig.Windows.MemberListWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WGneu.Windows"
Title="Mitglieder" Height="600" Width="1200" MinHeight="600" MinWidth="1000"
xmlns:local="clr-namespace:Elwig.Windows"
Title="Mitglieder verwalten - Elwig" Height="600" Width="1200" MinHeight="600" MinWidth="1000"
Loaded="Window_Loaded">
<Window.Resources>
<Style TargetType="Label">

View File

@ -7,11 +7,11 @@ using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using WGneu.Helpers;
using WGneu.Models;
using Elwig.Helpers;
using Elwig.Models;
namespace WGneu.Windows {
namespace Elwig.Windows {
public partial class MemberListWindow : Window {
private bool IsEditing = false;
private bool IsCreating = false;