common/Production/ProductionUiCordonel/App.xaml.cs
2026-04-23 17:50:07 +02:00

44 lines
1.7 KiB
C#

using System;
using System.Configuration;
using System.Windows;
using Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.EolProcesses;
using Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.PickingProcesses;
namespace Xylem.Common.Production.ProductionUiCordonel
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App
{
private static readonly String EolProcess = "ShippingUiCordonel";
private static readonly String PickingProcess = "AssemblyUiCordonel";
private void Application_Startup(Object sender, StartupEventArgs e)
{
switch (ConfigurationManager.AppSettings["Mode"])
{
case "1":
var ProductionWindow = new ProductionWindow(
ProductionUiCordonel.Properties.Resources.StrEolSoftwareNameVersion,
EolProcess, new EolProcessStateDef(), false);
ProductionWindow.Show();
break;
case "2":
ProductionWindow = new ProductionWindow(
ProductionUiCordonel.Properties.Resources.StrPickingSoftwareNameVersion,
PickingProcess, new PickingProcessStateDef(), true);
ProductionWindow.Show();
break;
default:
ProductionWindow = new ProductionWindow(
ProductionUiCordonel.Properties.Resources.StrEolSoftwareNameVersion,
EolProcess, new EolProcessStateDef(), false);
ProductionWindow.Show();
break;
}
}
}
}