Programm_Wirl/Program.cs
2025-04-28 08:31:23 +02:00

58 lines
1.8 KiB
C#

using DatenDB;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Management;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Deckungsbeitrag
{
static class Program
{
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
[STAThread]
static void Main()
{
string userid = ConfigurationManager.AppSettings["ConnectionString"].Split(';')[0];
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Screen[] screens = Screen.AllScreens;
//Application.Run(new FormMain(Benutzer.GetBenutzer(string.Empty, 3)));
FormLogin loginForm = new FormLogin();
if (loginForm.ShowDialog() == DialogResult.OK)
{
if (loginForm.Person.Rolle == BenutzerRolle.Waschstrasse)
{
Application.Run(new FormAufleger(screens, loginForm.Person));
//Application.Run(new FormWaschstrasse(screens));
}
else Application.Run(new FormMain(loginForm.Person, loginForm.t));
}
//Application.Run(new FormFahrerScreen());
//Application.Run(new FormWaschstrasse());
//Application.Run(new FormWSTAusschlag());
//FormWaschstrasse waschstrasse = new FormWaschstrasse("WASCHSTRASSE 1");
//waschstrasse.Show();
//Application.Run(new FormWaschstrasse("WASCHSTRASSE 2"));
//Application.Run(new FormFachBearbeiten());
//TO-DO///////////////////TO-DO////////////////////////TO-DO\\\\\\\\\\\\\\\\\\\\\TO-DO\\\\\\\\\\\\\\\\\\\\\\\TO-DO\\
//TODO: CLASS WASCHPROGRAMM ERSTELLEN
//TODO: DATENBANK WEGEN FACHLISTE CHECKEN
//TODO: FÄCHER PRO AUFTRAG INKLUSIVE ANZEIGE FÜR AUSSCHLAGER.
//TODO: LISTE STATT POSTENVERFOLGUNG? LISTE ZEIGT ALLE AUFTRÄGE INKL. FÄCHER UND KANN AKTUELLE ZEIGEN.
}
}
}