68 lines
1.8 KiB
C#
68 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BeWo
|
|
{
|
|
public enum DebugConfigMode
|
|
{
|
|
SimpleAutoLogin,
|
|
FeatureCustomerWohnhilfe,
|
|
FeatureWohnheimWohneinheit,
|
|
FeatureAuswertungenQuittierungsbelege
|
|
}
|
|
|
|
public class DebugConfig
|
|
{
|
|
private static DebugConfig _CurrentConfig;
|
|
public static DebugConfig CurrentConfig
|
|
{
|
|
get
|
|
{
|
|
#if DEBUG
|
|
|
|
return _CurrentConfig ?? (_CurrentConfig = SimpleAutoLogin);
|
|
|
|
#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 FeatureCustomerWohnhilfe => new DebugConfig()
|
|
{
|
|
DebugConfigMode = DebugConfigMode.FeatureCustomerWohnhilfe,
|
|
AutoLogin = true,
|
|
SelectView = UIContext.Customer
|
|
};
|
|
|
|
public static DebugConfig FeatureWohnheimWohneinheit => new DebugConfig()
|
|
{
|
|
DebugConfigMode = DebugConfigMode.FeatureWohnheimWohneinheit,
|
|
AutoLogin = true,
|
|
SelectView = UIContext.Wohnheim
|
|
};
|
|
|
|
public static DebugConfig FeatureAuswertungenQuittierungsbelege => new DebugConfig()
|
|
{
|
|
DebugConfigMode = DebugConfigMode.FeatureAuswertungenQuittierungsbelege,
|
|
AutoLogin = true,
|
|
SelectView = UIContext.Report
|
|
};
|
|
}
|
|
}
|