2024-09-11 14:34:48 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BeWo
|
|
|
|
|
|
{
|
|
|
|
|
|
public enum DebugConfigMode
|
|
|
|
|
|
{
|
|
|
|
|
|
SimpleAutoLogin,
|
2024-09-12 11:58:29 +02:00
|
|
|
|
FeatureWohnhilfe,
|
|
|
|
|
|
FeatureDakota
|
2024-09-11 14:34:48 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class DebugConfig
|
|
|
|
|
|
{
|
|
|
|
|
|
private static DebugConfig _CurrentConfig;
|
|
|
|
|
|
public static DebugConfig CurrentConfig
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
#if DEBUG
|
|
|
|
|
|
|
2024-09-12 11:58:29 +02:00
|
|
|
|
return _CurrentConfig ?? (_CurrentConfig = FeatureDakota);
|
2024-09-11 14:34:48 +02:00
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public DebugConfigMode DebugConfigMode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool AutoLogin { get; set; }
|
|
|
|
|
|
public UIContext? SelectView { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public static DebugConfig SimpleAutoLogin => new DebugConfig()
|
|
|
|
|
|
{
|
|
|
|
|
|
DebugConfigMode = DebugConfigMode.SimpleAutoLogin,
|
|
|
|
|
|
AutoLogin = true
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public static DebugConfig FeatureWohnhilfe => new DebugConfig()
|
|
|
|
|
|
{
|
|
|
|
|
|
DebugConfigMode = DebugConfigMode.FeatureWohnhilfe,
|
|
|
|
|
|
AutoLogin = true,
|
|
|
|
|
|
SelectView = UIContext.Customer
|
|
|
|
|
|
};
|
2024-09-12 11:58:29 +02:00
|
|
|
|
|
|
|
|
|
|
public static DebugConfig FeatureDakota => new DebugConfig()
|
|
|
|
|
|
{
|
|
|
|
|
|
DebugConfigMode = DebugConfigMode.FeatureDakota,
|
|
|
|
|
|
AutoLogin = true,
|
|
|
|
|
|
SelectView = UIContext.Finance
|
|
|
|
|
|
};
|
2024-09-11 14:34:48 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|